src/Entity/ProductPhotoTranslation.php line 24

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  6. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  7. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  8. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  9. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  10. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  11. /**
  12.  * @Doctrine\ORM\Mapping\Entity
  13.  * @Doctrine\ORM\Mapping\Table(name="product_photo_translation")
  14.  */
  15. class ProductPhotoTranslation implements TranslationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface   {
  16.     use TranslationTrait;
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\Column(type="integer")
  20.      * @ORM\GeneratedValue
  21.      */
  22.     private ?int $id null;
  23. use BlameableTrait;
  24.     use TimestampableTrait;
  25.     
  26.     use SoftDeletableTrait;
  27.     /**
  28.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  29.      */
  30.     protected $description;
  31.     public function getDescription(): ?string
  32.     {
  33.         return $this->description;
  34.     }
  35.     public function setDescription(string $description): self
  36.     {
  37.         $this->description $description;
  38.         return $this;
  39.     }
  40. }