src/Entity/CategoryLangParam.php line 26

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\LangParamRelationInterface;
  11. use Doctrine\ORM\Mapping as ORM;
  12. /**
  13.  * @Doctrine\ORM\Mapping\Entity
  14.  * @Doctrine\ORM\Mapping\Table(name="category_lang_param")
  15.  */
  16. class CategoryLangParam implements LangParamRelationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  17.     use BlameableTrait;
  18.     use TimestampableTrait;
  19.     
  20.     use SoftDeletableTrait;
  21.     
  22. /**
  23.      * @var integer
  24.      *
  25.      * @ORM\Column(name="id", type="integer", nullable=false)
  26.      * @ORM\Id
  27.      * @ORM\GeneratedValue(strategy="IDENTITY")
  28.      */
  29.     private $id;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity="App\Entity\Category", inversedBy="langParams")
  32.      * @ORM\JoinColumn(name="category_id", referencedColumnName="id")
  33.      */
  34.     protected $category;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\Language")
  37.      * @ORM\JoinColumn(name="language", referencedColumnName="id")
  38.      */
  39.     protected $language;
  40.     /**
  41.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  42.      */
  43.     protected $visible true;
  44.     /**
  45.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  46.      */
  47.     protected $special false;
  48.     /**
  49.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true)
  50.      */
  51.     protected $shortcut false;
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="position", type="integer", nullable=true)
  56.      */
  57.     private $position;
  58.     /**
  59.      * @Doctrine\ORM\Mapping\Column(type="boolean", nullable=true, options={"default"=1})
  60.      */
  61.     protected $isHomepage;
  62.     /**
  63.      * @return int
  64.      */
  65.     public function getNbProducts()
  66.     {
  67.         return $this->nbProducts;
  68.     }
  69.     /**
  70.      * @param int $nbProducts
  71.      */
  72.     public function setNbProducts(int $nbProducts): void
  73.     {
  74.         $this->nbProducts $nbProducts;
  75.     }
  76.     /**
  77.      * @var integer
  78.      *
  79.      * @ORM\Column(name="nb_products", type="integer", length=255, nullable=true)
  80.      */
  81.     private $nbProducts;
  82.     public function getId(): ?int
  83.     {
  84.         return $this->id;
  85.     }
  86.     public function getVisible(): ?bool
  87.     {
  88.         return $this->visible;
  89.     }
  90.     public function setVisible(?bool $visible): self
  91.     {
  92.         $this->visible $visible;
  93.         return $this;
  94.     }
  95.     public function getSpecial(): ?bool
  96.     {
  97.         return $this->special;
  98.     }
  99.     public function setSpecial(?bool $special): self
  100.     {
  101.         $this->special $special;
  102.         return $this;
  103.     }
  104.     public function getShortcut(): ?bool
  105.     {
  106.         return $this->shortcut;
  107.     }
  108.     public function setShortcut(?bool $shortcut): self
  109.     {
  110.         $this->shortcut $shortcut;
  111.         return $this;
  112.     }
  113.     public function getPosition(): ?string
  114.     {
  115.         return $this->position;
  116.     }
  117.     public function setPosition(?string $position): self
  118.     {
  119.         $this->position $position;
  120.         return $this;
  121.     }
  122.     public function getCategory(): ?Category
  123.     {
  124.         return $this->category;
  125.     }
  126.     public function setCategory(?Category $category): self
  127.     {
  128.         $this->category $category;
  129.         return $this;
  130.     }
  131.     public function getLanguage(): ?Language
  132.     {
  133.         return $this->language;
  134.     }
  135.     public function setLanguage(?Language $language): self
  136.     {
  137.         $this->language $language;
  138.         return $this;
  139.     }
  140.     /**
  141.      * @return mixed
  142.      */
  143.     public function getisHomepage()
  144.     {
  145.         return $this->isHomepage;
  146.     }
  147.     /**
  148.      * @return mixed
  149.      */
  150.     public function isHomepage()
  151.     {
  152.         return $this->isHomepage;
  153.     }
  154.     /**
  155.      * @param mixed $isHomepage
  156.      */
  157.     public function setIsHomepage($isHomepage): void
  158.     {
  159.         $this->isHomepage $isHomepage;
  160.     }
  161. }