vendor/shopware/core/Content/Cms/Aggregate/CmsSection/CmsSectionEntity.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\Aggregate\CmsSection;
  3. use Shopware\Core\Content\Cms\Aggregate\CmsBlock\CmsBlockCollection;
  4. use Shopware\Core\Content\Cms\CmsPageEntity;
  5. use Shopware\Core\Content\Media\MediaEntity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  7. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  8. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  9. class CmsSectionEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     use EntityCustomFieldsTrait;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $type;
  17.     /**
  18.      * @var CmsBlockCollection|null
  19.      */
  20.     protected $blocks;
  21.     /**
  22.      * @var string
  23.      */
  24.     protected $pageId;
  25.     /**
  26.      * @var CmsPageEntity|null
  27.      */
  28.     protected $page;
  29.     /**
  30.      * @var int
  31.      */
  32.     protected $position;
  33.     /**
  34.      * @var string|null
  35.      */
  36.     protected $name;
  37.     /**
  38.      * @var string|null
  39.      */
  40.     protected $sizingMode;
  41.     /**
  42.      * @var string|null
  43.      */
  44.     protected $mobileBehavior;
  45.     /**
  46.      * @var string|null
  47.      */
  48.     protected $backgroundColor;
  49.     /**
  50.      * @var string|null
  51.      */
  52.     protected $backgroundMediaId;
  53.     /**
  54.      * @var MediaEntity|null
  55.      */
  56.     protected $backgroundMedia;
  57.     /**
  58.      * @var string|null
  59.      */
  60.     protected $backgroundMediaMode;
  61.     /**
  62.      * @var string|null
  63.      */
  64.     protected $cssClass;
  65.     /**
  66.      * @var bool
  67.      */
  68.     protected $locked;
  69.     public function getType(): string
  70.     {
  71.         return $this->type;
  72.     }
  73.     public function setType(string $type): void
  74.     {
  75.         $this->type $type;
  76.     }
  77.     public function getBlocks(): ?CmsBlockCollection
  78.     {
  79.         return $this->blocks;
  80.     }
  81.     public function setBlocks(CmsBlockCollection $blocks): void
  82.     {
  83.         $this->blocks $blocks;
  84.     }
  85.     public function getPageId(): string
  86.     {
  87.         return $this->pageId;
  88.     }
  89.     public function setPageId(string $pageId): void
  90.     {
  91.         $this->pageId $pageId;
  92.     }
  93.     public function getPage(): ?CmsPageEntity
  94.     {
  95.         return $this->page;
  96.     }
  97.     public function setPage(CmsPageEntity $page): void
  98.     {
  99.         $this->page $page;
  100.     }
  101.     public function getPosition(): int
  102.     {
  103.         return $this->position;
  104.     }
  105.     public function setPosition(int $position): void
  106.     {
  107.         $this->position $position;
  108.     }
  109.     public function getName(): ?string
  110.     {
  111.         return $this->name;
  112.     }
  113.     public function setName(string $name): void
  114.     {
  115.         $this->name $name;
  116.     }
  117.     public function getSizingMode(): ?string
  118.     {
  119.         return $this->sizingMode;
  120.     }
  121.     public function setSizingMode(string $sizingMode): void
  122.     {
  123.         $this->sizingMode $sizingMode;
  124.     }
  125.     public function getMobileBehavior(): ?string
  126.     {
  127.         return $this->mobileBehavior;
  128.     }
  129.     public function setMobileBehavior(?string $mobileBehavior): void
  130.     {
  131.         $this->mobileBehavior $mobileBehavior;
  132.     }
  133.     public function getBackgroundColor(): ?string
  134.     {
  135.         return $this->backgroundColor;
  136.     }
  137.     public function setBackgroundColor(string $backgroundColor): void
  138.     {
  139.         $this->backgroundColor $backgroundColor;
  140.     }
  141.     public function getBackgroundMediaId(): ?string
  142.     {
  143.         return $this->backgroundMediaId;
  144.     }
  145.     public function setBackgroundMediaId(string $backgroundMediaId): void
  146.     {
  147.         $this->backgroundMediaId $backgroundMediaId;
  148.     }
  149.     public function getBackgroundMedia(): ?MediaEntity
  150.     {
  151.         return $this->backgroundMedia;
  152.     }
  153.     public function setBackgroundMedia(MediaEntity $backgroundMedia): void
  154.     {
  155.         $this->backgroundMedia $backgroundMedia;
  156.     }
  157.     public function getBackgroundMediaMode(): ?string
  158.     {
  159.         return $this->backgroundMediaMode;
  160.     }
  161.     public function setBackgroundMediaMode(string $backgroundMediaMode): void
  162.     {
  163.         $this->backgroundMediaMode $backgroundMediaMode;
  164.     }
  165.     public function getCssClass(): ?string
  166.     {
  167.         return $this->cssClass;
  168.     }
  169.     public function setCssClass(string $cssClass): void
  170.     {
  171.         $this->cssClass $cssClass;
  172.     }
  173.     public function getLocked(): bool
  174.     {
  175.         return $this->locked;
  176.     }
  177.     public function setLocked(bool $locked): void
  178.     {
  179.         $this->locked $locked;
  180.     }
  181. }