src/Entity/TypeOfTypes.php line 15
<?phpdeclare(strict_types=1);namespace App\Entity;use App\Repository\TypeOfTypesRepository;use App\Utils\Traits\EntityId_TimestampTrait;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Ulid;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;#[ORM\Entity(repositoryClass: TypeOfTypesRepository::class)]class TypeOfTypes{use EntityId_TimestampTrait;#[ORM\Column(type: 'string', length: 200)]private $libelle;#[ORM\Column(type: 'string', length: 200, nullable: true)]private $libelleFr;#[ORM\ManyToOne(targetEntity: self::class)]private $parent;#[ORM\Column(type: 'string', length: 255, unique: true)]private $codereference;#[ORM\OneToMany(mappedBy: 'fonction', targetEntity: FonctionUser::class)]private Collection $fonctionUsers;#[ORM\OneToMany(mappedBy: 'fonction', targetEntity: FonctionAction::class)]private Collection $fonctionActions;#[ORM\OneToMany(mappedBy: 'category', targetEntity: LibraryAssets::class)]private Collection $libraryAssets;public function __construct(){$this->uuid = new Ulid();$this->created = new \DateTimeImmutable('now');$this->updated = new \DateTime('now');$this->deleted = false;$this->fonctionUsers = new ArrayCollection();$this->fonctionActions = new ArrayCollection();$this->libraryAssets = new ArrayCollection();}public function __toString(){return $this->libelle;}public function getLibelle(): ?string{return $this->libelle;}public function setLibelle(string $libelle): self{$this->libelle = $libelle;return $this;}public function getParent(): ?self{return $this->parent;}public function setParent(?self $parent): self{$this->parent = $parent;return $this;}public function getCodereference(): ?string{return $this->codereference;}public function setCodereference(string $codereference): self{$this->codereference = $codereference;return $this;}public function getId(){return $this->id;}public function getLibelleFr(): ?string{return $this->libelleFr;}public function setLibelleFr(?string $libelleFr): self{$this->libelleFr = $libelleFr;return $this;}/*** @return Collection<int, FonctionUser>*/public function getFonctionUsers(): Collection{return $this->fonctionUsers;}public function addFonctionUser(FonctionUser $fonctionUser): self{if (!$this->fonctionUsers->contains($fonctionUser)) {$this->fonctionUsers->add($fonctionUser);$fonctionUser->setFonction($this);}return $this;}public function removeFonctionUser(FonctionUser $fonctionUser): self{if ($this->fonctionUsers->removeElement($fonctionUser)) {// set the owning side to null (unless already changed)if ($fonctionUser->getFonction() === $this) {$fonctionUser->setFonction(null);}}return $this;}/*** @return Collection<int, FonctionAction>*/public function getFonctionActions(): Collection{return $this->fonctionActions;}public function addFonctionAction(FonctionAction $fonctionAction): self{if (!$this->fonctionActions->contains($fonctionAction)) {$this->fonctionActions->add($fonctionAction);$fonctionAction->setFonction($this);}return $this;}public function removeFonctionAction(FonctionAction $fonctionAction): self{if ($this->fonctionActions->removeElement($fonctionAction)) {// set the owning side to null (unless already changed)if ($fonctionAction->getFonction() === $this) {$fonctionAction->setFonction(null);}}return $this;}/*** @return Collection<int, LibraryAssets>*/public function getLibraryAssets(): Collection{return $this->libraryAssets;}public function addLibraryAsset(LibraryAssets $libraryAsset): self{if (!$this->libraryAssets->contains($libraryAsset)) {$this->libraryAssets->add($libraryAsset);$libraryAsset->setCategory($this);}return $this;}public function removeLibraryAsset(LibraryAssets $libraryAsset): self{if ($this->libraryAssets->removeElement($libraryAsset)) {// set the owning side to null (unless already changed)if ($libraryAsset->getCategory() === $this) {$libraryAsset->setCategory(null);}}return $this;}}