src/App/Entity/Term.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Creation;
  4. use App\Entity\Traits\Deleteable;
  5. use App\Entity\Traits\Idable;
  6. use App\Entity\Traits\SoftUpdate;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity]
  9. #[ORM\Table(name'terms')]
  10. class Term
  11. {
  12.     use Idable;
  13.     use Creation;
  14.     use Deleteable;
  15.     use SoftUpdate;
  16.     #[ORM\Column(type'string')]
  17.     protected $taxonomy;
  18.     #[ORM\Column(type'string')]
  19.     protected $name;
  20.     #[ORM\Column(type'string')]
  21.     protected $name_tr;
  22.     #[ORM\ManyToOne(targetEntityCompany::class)]
  23.     protected $company;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private ?string $uid;
  26.     public function getUid(): ?string
  27.     {
  28.         return $this->uid;
  29.     }
  30.     public function setUid(?string $uid): void
  31.     {
  32.         $this->uid $uid;
  33.     }
  34.     public function getCompany()
  35.     {
  36.         return $this->company;
  37.     }
  38.     public function setCompany($company): void
  39.     {
  40.         $this->company $company;
  41.     }
  42.     public function getNameTr()
  43.     {
  44.         return $this->name_tr;
  45.     }
  46.     public function setNameTr($name_tr): void
  47.     {
  48.         $this->name_tr $name_tr;
  49.     }
  50.     public function getTaxonomy()
  51.     {
  52.         return $this->taxonomy;
  53.     }
  54.     public function setTaxonomy($taxonomy): void
  55.     {
  56.         $this->taxonomy $taxonomy;
  57.     }
  58.     public function getName()
  59.     {
  60.         return $this->name;
  61.     }
  62.     public function setName($name): void
  63.     {
  64.         $this->name $name;
  65.     }
  66. }