Your IP : 216.73.217.13


Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/ImportCore/Import/Config/Entity/
Upload File :
Current File : //var/www/www.indacotrentino.com/www/app/code/Amasty/ImportCore/Import/Config/Entity/Behavior.php

<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Import Core for Magento 2 (System)
 */

namespace Amasty\ImportCore\Import\Config\Entity;

use Amasty\ImportCore\Api\Config\Entity\BehaviorInterface;
use Magento\Framework\DataObject;

class Behavior extends DataObject implements BehaviorInterface
{
    public const CODE = 'code';
    public const NAME = 'name';
    public const EXECUTE_ON_CODES = 'execute_on_codes';
    public const CONFIG_CLASS = 'config_class';

    /**
     * @inheritDoc
     */
    public function getCode()
    {
        return $this->getData(self::CODE);
    }

    /**
     * @inheritDoc
     */
    public function setCode($code)
    {
        $this->setData(self::CODE, $code);
    }

    /**
     * @inheritDoc
     */
    public function getName()
    {
        return $this->getData(self::NAME);
    }

    /**
     * @inheritDoc
     */
    public function setName($name)
    {
        $this->setData(self::NAME, $name);
    }

    /**
     * @inheritDoc
     */
    public function getExecuteOnCodes()
    {
        return $this->getData(self::EXECUTE_ON_CODES) ?: [];
    }

    /**
     * @inheritDoc
     */
    public function setExecuteOnCodes(array $behaviorCodes)
    {
        $this->setData(self::EXECUTE_ON_CODES, $behaviorCodes);
    }

    /**
     * @inheritDoc
     */
    public function getConfigClass()
    {
        return $this->getData(self::CONFIG_CLASS);
    }

    /**
     * @inheritDoc
     */
    public function setConfigClass($configClass)
    {
        $this->setData(self::CONFIG_CLASS, $configClass);
    }
}