vendor/shopware/core/Content/Cms/Aggregate/CmsBlock/CmsBlockEntity.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\Aggregate\CmsBlock;
  3. use Shopware\Core\Content\Cms\Aggregate\CmsSection\CmsSectionEntity;
  4. use Shopware\Core\Content\Cms\Aggregate\CmsSlot\CmsSlotCollection;
  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 CmsBlockEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     use EntityCustomFieldsTrait;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $type;
  17.     /**
  18.      * @var CmsSlotCollection|null
  19.      */
  20.     protected $slots;
  21.     /**
  22.      * @var string
  23.      */
  24.     protected $sectionId;
  25.     /**
  26.      * @var CmsSectionEntity|null
  27.      */
  28.     protected $section;
  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 $sectionPosition;
  41.     /**
  42.      * @var string|null
  43.      */
  44.     protected $marginTop;
  45.     /**
  46.      * @var string|null
  47.      */
  48.     protected $marginBottom;
  49.     /**
  50.      * @var string|null
  51.      */
  52.     protected $marginLeft;
  53.     /**
  54.      * @var string|null
  55.      */
  56.     protected $marginRight;
  57.     /**
  58.      * @var string|null
  59.      */
  60.     protected $backgroundColor;
  61.     /**
  62.      * @var string|null
  63.      */
  64.     protected $backgroundMediaId;
  65.     /**
  66.      * @var MediaEntity|null
  67.      */
  68.     protected $backgroundMedia;
  69.     /**
  70.      * @var string|null
  71.      */
  72.     protected $backgroundMediaMode;
  73.     /**
  74.      * @var string|null
  75.      */
  76.     protected $cssClass;
  77.     /**
  78.      * @var bool
  79.      */
  80.     protected $locked;
  81.     public function getType(): string
  82.     {
  83.         return $this->type;
  84.     }
  85.     public function setType(string $type): void
  86.     {
  87.         $this->type $type;
  88.     }
  89.     public function getSlots(): ?CmsSlotCollection
  90.     {
  91.         return $this->slots;
  92.     }
  93.     public function setSlots(CmsSlotCollection $slots): void
  94.     {
  95.         $this->slots $slots;
  96.     }
  97.     public function getSectionId(): string
  98.     {
  99.         return $this->sectionId;
  100.     }
  101.     public function setSectionId(string $sectionId): void
  102.     {
  103.         $this->sectionId $sectionId;
  104.     }
  105.     public function getSection(): ?CmsSectionEntity
  106.     {
  107.         return $this->section;
  108.     }
  109.     public function setSection(CmsSectionEntity $section): void
  110.     {
  111.         $this->section $section;
  112.     }
  113.     public function getPosition(): int
  114.     {
  115.         return $this->position;
  116.     }
  117.     public function setPosition(int $position): void
  118.     {
  119.         $this->position $position;
  120.     }
  121.     public function getName(): ?string
  122.     {
  123.         return $this->name;
  124.     }
  125.     public function setName(string $name): void
  126.     {
  127.         $this->name $name;
  128.     }
  129.     public function getSectionPosition(): ?string
  130.     {
  131.         return $this->sectionPosition;
  132.     }
  133.     public function setSectionPosition(?string $sectionPosition): void
  134.     {
  135.         $this->sectionPosition $sectionPosition;
  136.     }
  137.     public function getMarginTop(): ?string
  138.     {
  139.         return $this->marginTop;
  140.     }
  141.     public function setMarginTop(string $marginTop): void
  142.     {
  143.         $this->marginTop $marginTop;
  144.     }
  145.     public function getMarginBottom(): ?string
  146.     {
  147.         return $this->marginBottom;
  148.     }
  149.     public function setMarginBottom(string $marginBottom): void
  150.     {
  151.         $this->marginBottom $marginBottom;
  152.     }
  153.     public function getMarginLeft(): ?string
  154.     {
  155.         return $this->marginLeft;
  156.     }
  157.     public function setMarginLeft(string $marginLeft): void
  158.     {
  159.         $this->marginLeft $marginLeft;
  160.     }
  161.     public function getMarginRight(): ?string
  162.     {
  163.         return $this->marginRight;
  164.     }
  165.     public function setMarginRight(string $marginRight): void
  166.     {
  167.         $this->marginRight $marginRight;
  168.     }
  169.     public function getBackgroundColor(): ?string
  170.     {
  171.         return $this->backgroundColor;
  172.     }
  173.     public function setBackgroundColor(string $backgroundColor): void
  174.     {
  175.         $this->backgroundColor $backgroundColor;
  176.     }
  177.     public function getBackgroundMediaId(): ?string
  178.     {
  179.         return $this->backgroundMediaId;
  180.     }
  181.     public function setBackgroundMediaId(string $backgroundMediaId): void
  182.     {
  183.         $this->backgroundMediaId $backgroundMediaId;
  184.     }
  185.     public function getBackgroundMedia(): ?MediaEntity
  186.     {
  187.         return $this->backgroundMedia;
  188.     }
  189.     public function setBackgroundMedia(MediaEntity $backgroundMedia): void
  190.     {
  191.         $this->backgroundMedia $backgroundMedia;
  192.     }
  193.     public function getBackgroundMediaMode(): ?string
  194.     {
  195.         return $this->backgroundMediaMode;
  196.     }
  197.     public function setBackgroundMediaMode(string $backgroundMediaMode): void
  198.     {
  199.         $this->backgroundMediaMode $backgroundMediaMode;
  200.     }
  201.     public function getCssClass(): ?string
  202.     {
  203.         return $this->cssClass;
  204.     }
  205.     public function setCssClass(string $cssClass): void
  206.     {
  207.         $this->cssClass $cssClass;
  208.     }
  209.     public function getLocked(): bool
  210.     {
  211.         return $this->locked;
  212.     }
  213.     public function setLocked(bool $locked): void
  214.     {
  215.         $this->locked $locked;
  216.     }
  217. }