![]() 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/cartforge.co/vendor/magento/module-downloadable/Model/File/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Downloadable\Model\File; use Magento\Downloadable\Api\Data\File\ContentInterface; /** * @codeCoverageIgnore */ class Content extends \Magento\Framework\Model\AbstractExtensibleModel implements ContentInterface { const DATA = 'file_data'; const NAME = 'name'; /** * {@inheritdoc} * @codeCoverageIgnore */ public function getFileData() { return $this->getData(self::DATA); } /** * {@inheritdoc} * @codeCoverageIgnore */ public function getName() { return $this->getData(self::NAME); } /** * Set data (base64 encoded content) * * @param string $fileData * @return $this * @codeCoverageIgnore */ public function setFileData($fileData) { return $this->setData(self::DATA, $fileData); } /** * Set file name * * @param string $name * @return $this * @codeCoverageIgnore */ public function setName($name) { return $this->setData(self::NAME, $name); } /** * {@inheritdoc} * * @return \Magento\Downloadable\Api\Data\File\ContentExtensionInterface|null */ public function getExtensionAttributes() { return $this->_getExtensionAttributes(); } /** * {@inheritdoc} * * @param \Magento\Downloadable\Api\Data\File\ContentExtensionInterface $extensionAttributes * @return $this */ public function setExtensionAttributes( \Magento\Downloadable\Api\Data\File\ContentExtensionInterface $extensionAttributes ) { return $this->_setExtensionAttributes($extensionAttributes); } }