![]() 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/magento/module-adobe-stock-asset/Model/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\AdobeStockAsset\Model; use Magento\AdobeStockAsset\Model\ResourceModel\Creator as CreatorResourceModel; use Magento\AdobeStockAssetApi\Api\Data\CreatorExtensionInterface; use Magento\AdobeStockAssetApi\Api\Data\CreatorInterface; use Magento\Framework\Model\AbstractExtensibleModel; /** * Representing the Adobe Stock asset creator (person who uploaded the asset to the Adobe Stock) */ class Creator extends AbstractExtensibleModel implements CreatorInterface { private const ID = 'id'; private const NAME = 'name'; /** * @inheritdoc */ protected function _construct(): void { $this->_init(CreatorResourceModel::class); } /** * @inheritdoc */ public function getId(): ?int { $id = $this->getData(self::ID); if (!$id) { return null; } return (int) $id; } /** * @inheritdoc */ public function getName(): string { return (string) $this->getData(self::NAME); } /** * @inheritdoc */ public function getExtensionAttributes(): CreatorExtensionInterface { return $this->_getExtensionAttributes(); } /** * @inheritdoc */ public function setExtensionAttributes(CreatorExtensionInterface $extensionAttributes): void { $this->_setExtensionAttributes($extensionAttributes); } }