src/Entity/ProductParameterLangParam.php line 27

Open in your IDE?
  1. <?php
  2. // src/Acme/UserBundle/Entity/User.php
  3. namespace App\Entity;
  4. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  5. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  9. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  10. use App\Model\LangParamInterface;
  11. use App\Model\LangParamRelationInterface;
  12. use Doctrine\ORM\Mapping as ORM;
  13. /**
  14.  * @Doctrine\ORM\Mapping\Entity
  15.  * @Doctrine\ORM\Mapping\Table(name="product_parameter_lang_param")
  16.  */
  17. class ProductParameterLangParam implements LangParamRelationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  18.     use BlameableTrait;
  19.     use TimestampableTrait;
  20.     
  21.     use SoftDeletableTrait;
  22.     
  23. /**
  24.      * @var integer
  25.      *
  26.      * @ORM\Column(name="id", type="integer", nullable=false)
  27.      * @ORM\Id
  28.      * @ORM\GeneratedValue(strategy="IDENTITY")
  29.      */
  30.     private $id;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductParameter", inversedBy="langParams")
  33.      * @ORM\JoinColumn(name="product_parameter_id", referencedColumnName="id")
  34.      */
  35.     protected $productParameter;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\Language")
  38.      * @ORM\JoinColumn(name="language", referencedColumnName="id")
  39.      */
  40.     protected $language;
  41.     /**
  42.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  43.      */
  44.     protected $visible true;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="position", type="string", length=255, nullable=true)
  49.      */
  50.     private $position;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getLanguage(): ?Language
  56.     {
  57.         return $this->language;
  58.     }
  59.     public function setLanguage(?Language $language): self
  60.     {
  61.         $this->language $language;
  62.         return $this;
  63.     }
  64.     public function getVisible(): ?bool
  65.     {
  66.         return $this->visible;
  67.     }
  68.     public function setVisible(?bool $visible): self
  69.     {
  70.         $this->visible $visible;
  71.         return $this;
  72.     }
  73.     public function getPosition(): ?string
  74.     {
  75.         return $this->position;
  76.     }
  77.     public function setPosition(?string $position): self
  78.     {
  79.         $this->position $position;
  80.         return $this;
  81.     }
  82.     public function getProductParameter(): ?ProductParameter
  83.     {
  84.         return $this->productParameter;
  85.     }
  86.     public function setProductParameter(?ProductParameter $productParameter): self
  87.     {
  88.         $this->productParameter $productParameter;
  89.         return $this;
  90.     }
  91. }