custom/plugins/SasBlogModule/src/Content/BlogCategory/BlogCategoryEntity.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Sas\BlogModule\Content\BlogCategory;
  3. use Sas\BlogModule\Content\Blog\BlogEntriesCollection;
  4. use Sas\BlogModule\Content\BlogCategory\BlogCategoryTranslation\BlogCategoryTranslationCollection;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. class BlogCategoryEntity extends Entity
  8. {
  9.     use EntityIdTrait;
  10.     /**
  11.      * @var string|null
  12.      */
  13.     protected $parentId;
  14.     /**
  15.      * @var string|null
  16.      */
  17.     protected $afterCategoryId;
  18.     /**
  19.      * @var int|null
  20.      */
  21.     protected $level;
  22.     /**
  23.      * @var string|null
  24.      */
  25.     protected $path;
  26.     /**
  27.      * @var int|null
  28.      */
  29.     protected $childCount;
  30.     /**
  31.      * @var string
  32.      */
  33.     protected $name;
  34.     /**
  35.      * @var array|null
  36.      */
  37.     protected $customFields;
  38.     /**
  39.      * @var self|null
  40.      */
  41.     protected $parent;
  42.     /**
  43.      * @var BlogCategoryCollection|null
  44.      */
  45.     protected $children;
  46.     /**
  47.      * @var BlogCategoryTranslationCollection|null
  48.      */
  49.     protected $translations;
  50.     /**
  51.      * @var BlogEntriesCollection|null
  52.      */
  53.     protected $blogs;
  54.     public function getParentId(): ?string
  55.     {
  56.         return $this->parentId;
  57.     }
  58.     public function setParentId(?string $parentId): void
  59.     {
  60.         $this->parentId $parentId;
  61.     }
  62.     public function getAfterCategoryId(): ?string
  63.     {
  64.         return $this->afterCategoryId;
  65.     }
  66.     public function setAfterCategoryId(?string $afterCategoryId): void
  67.     {
  68.         $this->afterCategoryId $afterCategoryId;
  69.     }
  70.     public function getLevel(): ?int
  71.     {
  72.         return $this->level;
  73.     }
  74.     public function setLevel(?int $level): void
  75.     {
  76.         $this->level $level;
  77.     }
  78.     public function getPath(): ?string
  79.     {
  80.         return $this->path;
  81.     }
  82.     public function setPath(?string $path): void
  83.     {
  84.         $this->path $path;
  85.     }
  86.     public function getChildCount(): ?int
  87.     {
  88.         return $this->childCount;
  89.     }
  90.     public function setChildCount(?int $childCount): void
  91.     {
  92.         $this->childCount $childCount;
  93.     }
  94.     public function getName(): string
  95.     {
  96.         return $this->name;
  97.     }
  98.     public function setName(string $name): void
  99.     {
  100.         $this->name $name;
  101.     }
  102.     public function getCustomFields(): ?array
  103.     {
  104.         return $this->customFields;
  105.     }
  106.     public function setCustomFields(?array $customFields): void
  107.     {
  108.         $this->customFields $customFields;
  109.     }
  110.     public function getParent(): ?Entity
  111.     {
  112.         return $this->parent;
  113.     }
  114.     public function setParent(self $parent): void
  115.     {
  116.         $this->parent $parent;
  117.     }
  118.     public function getChildren(): ?BlogCategoryCollection
  119.     {
  120.         return $this->children;
  121.     }
  122.     public function setChildren(BlogCategoryCollection $children): void
  123.     {
  124.         $this->children $children;
  125.     }
  126.     public function getTranslations(): BlogCategoryTranslationCollection
  127.     {
  128.         return $this->translations;
  129.     }
  130.     public function setTranslations(BlogCategoryTranslationCollection $translations): void
  131.     {
  132.         $this->translations $translations;
  133.     }
  134.     public function getBlogs(): ?BlogEntriesCollection
  135.     {
  136.         return $this->blogs;
  137.     }
  138.     public function setBlogs(BlogEntriesCollection $blogs): void
  139.     {
  140.         $this->blogs $blogs;
  141.     }
  142. }