![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/wyomind/msicustomattributes/Model/ |
<?php /** * Copyright © 2020 Wyomind. All rights reserved. * See LICENSE.txt for license details. */ namespace Wyomind\MsiCustomAttributes\Model; /** * Class CustomAttribute * @package Wyomind\MsiCustomAttributes\Model */ class CustomAttribute extends \Magento\Framework\Model\AbstractModel implements \Wyomind\MsiCustomAttributes\Api\Data\CustomAttributeInterface { /** * */ public function _construct() { $this->_init('Wyomind\MsiCustomAttributes\Model\ResourceModel\CustomAttribute'); } /** * @return int */ public function getAttributeId(): ?int { return $this->getData(self::ATTRIBUTE_ID); } /** * @param int $attributeId */ public function setAttributeId(int $attributeId): void { $this->setData(self::ATTRIBUTE_ID, $attributeId); } /** * @return string */ public function getCode(): string { return $this->getData(self::CODE); } /** * @param string $sourceCode */ public function setCode(string $sourceCode): void { $this->setData(self::CODE, $sourceCode); } /** * @return string */ public function getLabel(): string { return $this->getData(self::LABEL); } /** * @param int $value */ public function setLabel(int $value): void { $this->setData(self::LABEL, $value); } /** * @return int */ public function getType(): string { return $this->getData(self::TYPE); } /** * @param int $type */ public function setType(string $type): void { $this->setData(self::TYPE, $type); } /** * @return int */ public function getSortOrder(): int { return $this->getData(self::SORT_ORDER); } /** * @param int $sortOrder */ public function setSortOrder(int $sortOrder): void { $this->setData(self::SORT_ORDER, $sortOrder); } /** * @return int */ public function getOptionValues(): ?string { return $this->getData(self::OPTION_VALUES); } /** * @param int $type */ public function setOptionValues(string $optionValues): void { $this->setData(self::OPTION_VALUES, $optionValues); } }