src/Entity/PaymentMethodTranslation.php line 26

Open in your IDE?
  1. <?php
  2. /**
  3.  * TĹ‚umaczenia dla Country
  4.  */
  5. namespace App\Entity;
  6. use Doctrine\ORM\Mapping as ORM;use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  7. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  10. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  11. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  12. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  13. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  14. /**
  15.  * @Doctrine\ORM\Mapping\Entity
  16.  * @Doctrine\ORM\Mapping\Table(name="payment_method_translation")
  17.  */
  18. class PaymentMethodTranslation implements TranslationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface   {
  19.     use TranslationTrait;
  20.     /**
  21.      * @ORM\Id
  22.      * @ORM\Column(type="integer")
  23.      * @ORM\GeneratedValue
  24.      */
  25.     private ?int $id null;
  26. use BlameableTrait;
  27.     use TimestampableTrait;
  28.     
  29.     use SoftDeletableTrait;
  30.     /**
  31.      * @Doctrine\ORM\Mapping\Column(type="string", length=255)
  32.      */
  33.     protected $name;
  34.     /**
  35.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  36.      */
  37.     protected $content;
  38.     /**
  39.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true, name="description")
  40.      */
  41.     protected $description;
  42.     /**
  43.      * @return string
  44.      */
  45.     public function getName()
  46.     {
  47.         return $this->name;
  48.     }
  49.     /**
  50.      * @param  string
  51.      * @return null
  52.      */
  53.     public function setName($name)
  54.     {
  55.         $this->name $name;
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getContent(): ?string
  62.     {
  63.         return $this->content;
  64.     }
  65.     public function setContent(?string $content): self
  66.     {
  67.         $this->content $content;
  68.         return $this;
  69.     }
  70.     /**
  71.      * @return mixed
  72.      */
  73.     public function getDescription()
  74.     {
  75.         return $this->description;
  76.     }
  77.     /**
  78.      * @param mixed $description
  79.      */
  80.     public function setDescription($description): void
  81.     {
  82.         $this->description $description;
  83.     }
  84. }