src/Entity/Taxonomy.php line 11
<?phpnamespace App\Entity;use App\Repository\TaxonomyRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TaxonomyRepository::class)]class Taxonomy{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\OneToMany(mappedBy: 'taxonomy', targetEntity: TaxonomyValue::class, orphanRemoval: true)]private Collection $taxonomy;#[ORM\Column(length: 255, nullable: true)]private ?string $Description = null;public function __construct(){$this->taxonomy = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): static{$this->name = $name;return $this;}/*** @return Collection<int, TaxonomyValue>*/public function getTaxonomy(): Collection{return $this->taxonomy;}public function addTaxonomy(TaxonomyValue $taxonomy): static{if (!$this->taxonomy->contains($taxonomy)) {$this->taxonomy->add($taxonomy);$taxonomy->setTaxonomy($this);}return $this;}public function removeTaxonomy(TaxonomyValue $taxonomy): static{if ($this->taxonomy->removeElement($taxonomy)) {// set the owning side to null (unless already changed)if ($taxonomy->getTaxonomy() === $this) {$taxonomy->setTaxonomy(null);}}return $this;}public function getDescription(): ?string{return $this->Description;}public function setDescription(?string $Description): static{$this->Description = $Description;return $this;}}