src/Entity/GoogleLabel.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Symfony\Contracts\Translation\TranslatorInterface;
  12. /**
  13.  * @Doctrine\ORM\Mapping\Entity
  14.  * @Doctrine\ORM\Mapping\Table(name="google_label")
  15.  */
  16. class GoogleLabel implements BlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  17.     use BlameableTrait;
  18.     use TimestampableTrait;
  19.     
  20.     use SoftDeletableTrait;
  21.     
  22. /**
  23.      * @Doctrine\ORM\Mapping\Id
  24.      * @Doctrine\ORM\Mapping\Column(type="integer")
  25.      * @Doctrine\ORM\Mapping\GeneratedValue(strategy="AUTO")
  26.      */
  27.     protected $id;
  28.     /**
  29.      * @Doctrine\ORM\Mapping\Column(type="text", name="name")
  30.      */
  31.     protected $name;
  32.     /**
  33.      * @Doctrine\ORM\Mapping\ManyToOne(targetEntity="App\Entity\Language")
  34.      * @Doctrine\ORM\Mapping\JoinColumn(name="language", referencedColumnName="id")
  35.      */
  36.     protected $language;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * @return mixed
  43.      */
  44.     public function getName()
  45.     {
  46.         return $this->name;
  47.     }
  48.     /**
  49.      * @param mixed $name
  50.      */
  51.     public function setName($name): void
  52.     {
  53.         $this->name $name;
  54.     }
  55.     public function getLanguage(): ?Language
  56.     {
  57.         return $this->language;
  58.     }
  59.     public function setLanguage(?Language $language): self
  60.     {
  61.         $this->language $language;
  62.         return $this;
  63.     }
  64. }