<?php declare(strict_types=1);
namespace Maxia\MaxiaVariantsTable6\Core\Content\VariantsTable;
use Shopware\Core\Framework\Struct\Struct;
class PluginConfig extends Struct
{
/* @var bool */
protected $pluginEnabled;
/** @var string */
protected $displayMode;
/** @var bool */
protected $stickyHeaderActive;
/** @var int */
protected $stickyHeaderOffsetTop;
/** @var int */
protected $stickyHeaderOffsetLeft;
/** @var int */
protected $stickyHeaderOffsetRight;
/** @var bool */
protected $hidePricesForGuests;
/** @var array */
protected $hidePricesForCustomerGroups;
/** @var ?array */
protected $visibilityRules;
public function isPluginEnabled(): ?bool
{
return $this->pluginEnabled;
}
public function setPluginEnabled(bool $pluginEnabled): PluginConfig
{
$this->pluginEnabled = $pluginEnabled;
return $this;
}
public function getDisplayMode(): ?string
{
return $this->displayMode;
}
public function setDisplayMode(string $displayMode): PluginConfig
{
$this->displayMode = $displayMode;
return $this;
}
public function getStickyHeaderActive(): ?bool
{
return $this->stickyHeaderActive;
}
public function setStickyHeaderActive(bool $stickyHeaderActive): PluginConfig
{
$this->stickyHeaderActive = $stickyHeaderActive;
return $this;
}
public function getStickyHeaderOffsetTop(): ?int
{
return (int)$this->stickyHeaderOffsetTop;
}
public function setStickyHeaderOffsetTop(int $stickyHeaderOffsetTop): PluginConfig
{
$this->stickyHeaderOffsetTop = $stickyHeaderOffsetTop;
return $this;
}
public function getStickyHeaderOffsetLeft(): ?int
{
return (int)$this->stickyHeaderOffsetLeft;
}
public function setStickyHeaderOffsetLeft(int $stickyHeaderOffsetLeft): PluginConfig
{
$this->stickyHeaderOffsetLeft = $stickyHeaderOffsetLeft;
return $this;
}
public function getStickyHeaderOffsetRight(): ?int
{
return (int)$this->stickyHeaderOffsetRight;
}
public function setStickyHeaderOffsetRight(int $stickyHeaderOffsetRight): PluginConfig
{
$this->stickyHeaderOffsetRight = $stickyHeaderOffsetRight;
return $this;
}
public function isHidePricesForGuests(): ?bool
{
return $this->hidePricesForGuests;
}
public function setHidePricesForGuests(bool $hidePricesForGuests): PluginConfig
{
$this->hidePricesForGuests = $hidePricesForGuests;
return $this;
}
public function getHidePricesForCustomerGroups(): ?array
{
return $this->hidePricesForCustomerGroups;
}
public function setHidePricesForCustomerGroups($hidePricesForCustomerGroups): PluginConfig
{
$this->hidePricesForCustomerGroups = $hidePricesForCustomerGroups;
return $this;
}
public function getVisibilityRules(): ?array
{
return $this->visibilityRules;
}
public function setVisibilityRules(?array $visibilityRules): PluginConfig
{
$this->visibilityRules = $visibilityRules;
return $this;
}
}