src/Entity/ProductParameterValueGroupTranslation.php line 26

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\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. use Symfony\Contracts\Translation\TranslatorInterface;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14.  * @Doctrine\ORM\Mapping\Entity
  15.  * @Doctrine\ORM\Mapping\Table(name="product_parameter_value_group_translation")
  16.  */
  17. class ProductParameterValueGroupTranslation implements TranslationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface   {
  18.     use TranslationTrait;
  19.     /**
  20.      * @ORM\Id
  21.      * @ORM\Column(type="integer")
  22.      * @ORM\GeneratedValue
  23.      */
  24.     private ?int $id null;
  25. use BlameableTrait;
  26.     use TimestampableTrait;
  27.     
  28.     use SoftDeletableTrait;
  29.     /**
  30.      * @Doctrine\ORM\Mapping\Column(type="string", length=255)
  31.      */
  32.     protected $name;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="description", type="text", nullable=true)
  37.      */
  38.     private $description;
  39.     /**
  40.      * Set description
  41.      *
  42.      * @param string $description
  43.      *
  44.      * @return ProductParameterValueGroupTranslation
  45.      */
  46.     public function setDescription($description)
  47.     {
  48.         $this->description $description;
  49.         return $this;
  50.     }
  51.     /**
  52.      * Get description
  53.      *
  54.      * @return string
  55.      */
  56.     public function getDescription()
  57.     {
  58.         return $this->description;
  59.     }
  60.     /**
  61.      * @return string
  62.      */
  63.     public function getName()
  64.     {
  65.         return $this->name;
  66.     }
  67.     /**
  68.      * @param  string
  69.      * @return null
  70.      */
  71.     public function setName($name)
  72.     {
  73.         $this->name $name;
  74.     }
  75.     public function getId(): ?int
  76.     {
  77.         return $this->id;
  78.     }
  79. }