src/Entity/System/TaxonomyInfo.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\TaxonomyInfoRepository")
  6.  *
  7.  * @ORM\Table(name="taxonomy_info")
  8.  */
  9. class TaxonomyInfo
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Id()
  15.      *
  16.      * @ORM\Column(type="integer", name="id_taxonomy")
  17.      */
  18.     private $taxonomyId;
  19.     /**
  20.      * @var int
  21.      *
  22.      * @ORM\Id()
  23.      *
  24.      * @ORM\Column(type="integer", name="id_language")
  25.      */
  26.     private $languageId;
  27.     /**
  28.      * @var int|null
  29.      *
  30.      * @ORM\Column(type="integer", nullable=true, name="id_parent")
  31.      */
  32.     private $parentId;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(type="string")
  37.      */
  38.     private $name;
  39.     /**
  40.      * @var string|null
  41.      *
  42.      * @ORM\Column(type="text", nullable=true)
  43.      */
  44.     private $description;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(type="string")
  49.      */
  50.     private $linkRewrite;
  51.     /**
  52.      * @var int
  53.      *
  54.      * @ORM\Column(type="integer")
  55.      */
  56.     private $productCount;
  57.     /**
  58.      * @var int|null
  59.      *
  60.      * @ORM\Column(type="integer", nullable=true, name="id_image")
  61.      */
  62.     private $imageId;
  63.     /**
  64.      * @var string|null
  65.      *
  66.      * @ORM\Column(type="string", nullable=true)
  67.      */
  68.     private $imageName;
  69.     /**
  70.      * @var bool|null
  71.      *
  72.      * @ORM\Column(type="boolean", nullable=true)
  73.      */
  74.     private $isGif;
  75.     public function getTaxonomyId(): int
  76.     {
  77.         return $this->taxonomyId;
  78.     }
  79.     public function setTaxonomyId(int $taxonomyId): TaxonomyInfo
  80.     {
  81.         $this->taxonomyId $taxonomyId;
  82.         return $this;
  83.     }
  84.     public function getLanguageId(): int
  85.     {
  86.         return $this->languageId;
  87.     }
  88.     public function setLanguageId(int $languageId): TaxonomyInfo
  89.     {
  90.         $this->languageId $languageId;
  91.         return $this;
  92.     }
  93.     public function getParentId(): ?int
  94.     {
  95.         return $this->parentId;
  96.     }
  97.     public function setParentId(?int $parentId): TaxonomyInfo
  98.     {
  99.         $this->parentId $parentId;
  100.         return $this;
  101.     }
  102.     public function getName(): string
  103.     {
  104.         return $this->name;
  105.     }
  106.     public function setName(string $name): TaxonomyInfo
  107.     {
  108.         $this->name $name;
  109.         return $this;
  110.     }
  111.     public function getDescription(): ?string
  112.     {
  113.         return $this->description;
  114.     }
  115.     public function setDescription(?string $description): TaxonomyInfo
  116.     {
  117.         $this->description $description;
  118.         return $this;
  119.     }
  120.     public function getLinkRewrite(): string
  121.     {
  122.         return $this->linkRewrite;
  123.     }
  124.     public function setLinkRewrite(string $linkRewrite): TaxonomyInfo
  125.     {
  126.         $this->linkRewrite $linkRewrite;
  127.         return $this;
  128.     }
  129.     public function getProductCount(): int
  130.     {
  131.         return $this->productCount;
  132.     }
  133.     public function setProductCount(int $productCount): TaxonomyInfo
  134.     {
  135.         $this->productCount $productCount;
  136.         return $this;
  137.     }
  138.     public function getImageId(): ?int
  139.     {
  140.         return $this->imageId;
  141.     }
  142.     public function setImageId(?int $imageId): TaxonomyInfo
  143.     {
  144.         $this->imageId $imageId;
  145.         return $this;
  146.     }
  147.     public function getImageName(): ?string
  148.     {
  149.         return $this->imageName;
  150.     }
  151.     public function setImageName(?string $imageName): TaxonomyInfo
  152.     {
  153.         $this->imageName $imageName;
  154.         return $this;
  155.     }
  156.     public function getIsGif(): ?bool
  157.     {
  158.         return $this->isGif;
  159.     }
  160.     public function setIsGif(?bool $isGif): TaxonomyInfo
  161.     {
  162.         $this->isGif $isGif;
  163.         return $this;
  164.     }
  165.     /**
  166.      * @deprecated use Factory
  167.      */
  168.     public function setParameters(array $taxonomyDataint $languageId)
  169.     {
  170.         $this->taxonomyId $taxonomyData['id'];
  171.         $this->languageId $languageId;
  172.         $this->parentId $taxonomyData['parent'];
  173.         $this->name $taxonomyData['name'];
  174.         $this->description $taxonomyData['description'];
  175.         $this->linkRewrite $taxonomyData['linkRewrite'];
  176.         $this->productCount $taxonomyData['product_count'];
  177.         $this->imageId $taxonomyData['image_id'];
  178.         $this->imageName $taxonomyData['image_name'];
  179.         $this->isGif $taxonomyData['isGif'];
  180.     }
  181. }