src/Entity/BookingPaymentMethodTranslation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\BookingPaymentMethodTranslationRepository;
  5. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  7. #[ORM\Entity(repositoryClass:BookingPaymentMethodTranslationRepository::class)]
  8. class BookingPaymentMethodTranslation implements TranslationInterface
  9. {
  10.     use TranslationTrait;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type"integer")]
  14.     private $id;
  15.     #[ORM\Column(type:"string"length255)]
  16.     private $title;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getTitle(): ?string
  22.     {
  23.         return $this->title;
  24.     }
  25.     public function setTitle(string $title): self
  26.     {
  27.         $this->title $title;
  28.         return $this;
  29.     }
  30. }