src/Entity/CropcategoryTranslation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Translation\AutoTranslationTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. #[ORM\Entity]
  7. class CropcategoryTranslation implements TranslationInterface
  8. {
  9.     use AutoTranslationTrait;
  10.     #[ORM\Id]
  11.     #[ORM\Column(type'integer')]
  12.     #[ORM\GeneratedValue(strategy'AUTO')]
  13.     private $id;
  14.     #[ORM\Column(type'string'nullabletrue)]
  15.     private ?string $name null;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getName(): ?string
  21.     {
  22.         return $this->name;
  23.     }
  24.     public function setName(string $name): CropcategoryTranslation
  25.     {
  26.         $this->name $name;
  27.         return $this;
  28.     }
  29. }