<?phpdeclare(strict_types=1);namespace Croisiland\CommonBundle\Entity\Company;use Crea\MediaBundle\Entity\MediaTagOwnerInterface;use Crea\ToolsBundle\Entity\CreaIconIdentifiedInterface;use Crea\ToolsBundle\Entity\CreaIconTrait;use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;use Croisiland\CommonBundle\Annotation\Company\AdvantageFormValidator;use Croisiland\CommonBundle\Entity\Traits\ColorTrait;use Croisiland\CommonBundle\Entity\Traits\IsActiveTrait;use Croisiland\CommonBundle\Entity\Traits\IsVisibleTrait;use Croisiland\CommonBundle\Entity\Traits\ListOrderTrait;use Croisiland\CommonBundle\Repository\Company\AdvantageRepository;use Doctrine\Common\Util\ClassUtils;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=AdvantageRepository::class) * * @AdvantageFormValidator(groups={"advantage_form_validator"}) */class Advantage implements MediaTagOwnerInterface, CreaIconIdentifiedInterface{ use CreaIconTrait; use ListOrderTrait; use IsActiveTrait; use IsVisibleTrait; use LifecycleUserIdentifierTrait; /** * @ORM\Id * * @ORM\GeneratedValue * * @ORM\Column(type="integer") */ private ?int $id; /** * @ORM\Column(type="string", length=255) */ private ?string $name = null; /** * @ORM\Column(type="text", nullable=true) */ private ?string $shortDescription = null; /** * @ORM\Column(type="text", nullable=true) */ private ?string $description = null; /** * @ORM\Column(type="text", nullable=true) */ private ?string $comment = null; /** * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="advantages") * * @ORM\JoinColumn(nullable=false) */ private ?Company $company = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(?string $name): self { $this->name = $name; return $this; } public function getShortDescription(): ?string { return $this->shortDescription; } public function setShortDescription(?string $shortDescription): Advantage { $this->shortDescription = $shortDescription; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getCompany(): ?Company { return $this->company; } public function setCompany(?Company $company): self { $this->company = $company; return $this; } /** * Method liée au Média Bundle */ public function getMediaTagOwnerLabel(): ?string { return $this->getName(); } /** * Method liée au Média Bundle * @return class-string */ public function getFqcn(): string { return ClassUtils::getClass($this); } public function getIconLabel(): ?string { return $this->getName(); }}