src/Entity/FurnitureTypeLangParam.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="furniture_lang_param")
  16.  */
  17. class FurnitureTypeLangParam 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\FurnitureType", inversedBy="langParams")
  33.      * @ORM\JoinColumn(name="furniture_type_id", referencedColumnName="id")
  34.      */
  35.     protected $furnitureType;
  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.     /**
  52.      * @return int
  53.      */
  54.     public function getNbProducts()
  55.     {
  56.         return $this->nbProducts;
  57.     }
  58.     /**
  59.      * @param int $nbProducts
  60.      */
  61.     public function setNbProducts(int $nbProducts): void
  62.     {
  63.         $this->nbProducts $nbProducts;
  64.     }
  65.     /**
  66.      * @var integer
  67.      *
  68.      * @ORM\Column(name="nb_products", type="integer", length=255, nullable=true)
  69.      */
  70.     private $nbProducts;
  71.     public function getId(): ?int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function getVisible(): ?bool
  76.     {
  77.         return $this->visible;
  78.     }
  79.     public function setVisible(?bool $visible): self
  80.     {
  81.         $this->visible $visible;
  82.         return $this;
  83.     }
  84.     public function getPosition(): ?string
  85.     {
  86.         return $this->position;
  87.     }
  88.     public function setPosition(?string $position): self
  89.     {
  90.         $this->position $position;
  91.         return $this;
  92.     }
  93.     public function getLanguage(): ?Language
  94.     {
  95.         return $this->language;
  96.     }
  97.     public function setLanguage(?Language $language): self
  98.     {
  99.         $this->language $language;
  100.         return $this;
  101.     }
  102.     public function getFurnitureType(): ?FurnitureType
  103.     {
  104.         return $this->furnitureType;
  105.     }
  106.     public function setFurnitureType(?FurnitureType $furnitureType): self
  107.     {
  108.         $this->furnitureType $furnitureType;
  109.         return $this;
  110.     }
  111. }