| Current Path : /home/rtorresani/www/app/code/Amasty/ImportCore/Import/Config/Entity/Field/ |
| Current File : //home/rtorresani/www/app/code/Amasty/ImportCore/Import/Config/Entity/Field/Preselected.php |
<?php
declare(strict_types=1);
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Import Core for Magento 2 (System)
*/
namespace Amasty\ImportCore\Import\Config\Entity\Field;
use Amasty\ImportCore\Api\Config\Entity\Field\Configuration\PreselectedInterface;
use Magento\Framework\DataObject;
class Preselected extends DataObject implements PreselectedInterface
{
public const REQUIRED = 'required';
public const INCLUDE_BEHAVIORS = 'include_behaviors';
public const EXCLUDE_BEHAVIORS = 'exclude_behaviors';
public function setIsRequired(bool $isRequired): void
{
$this->setData(self::REQUIRED, $isRequired);
}
public function getIsRequired(): bool
{
return (bool)$this->getData(self::REQUIRED);
}
public function setIncludeBehaviors(array $includeBehaviors): void
{
$this->setData(self::INCLUDE_BEHAVIORS, $includeBehaviors);
}
public function getIncludeBehaviors(): ?array
{
return $this->getData(self::INCLUDE_BEHAVIORS);
}
public function setExcludeBehaviors(array $excludeBehaviors): void
{
$this->setData(self::EXCLUDE_BEHAVIORS, $excludeBehaviors);
}
public function getExcludeBehaviors(): ?array
{
return $this->getData(self::EXCLUDE_BEHAVIORS);
}
}