| Current Path : /home/rtorresani/www/vendor/magento/module-downloadable/Api/Data/File/ |
| Current File : //home/rtorresani/www/vendor/magento/module-downloadable/Api/Data/File/ContentInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Downloadable\Api\Data\File;
/**
* @codeCoverageIgnore
* @api
* @since 100.0.2
*/
interface ContentInterface extends \Magento\Framework\Api\ExtensibleDataInterface
{
/**
* Retrieve data (base64 encoded content)
*
* @return string
*/
public function getFileData();
/**
* Set data (base64 encoded content)
*
* @param string $fileData
* @return $this
*/
public function setFileData($fileData);
/**
* Retrieve file name
*
* @return string
*/
public function getName();
/**
* Set file name
*
* @param string $name
* @return $this
*/
public function setName($name);
/**
* Retrieve existing extension attributes object or create a new one.
*
* @return \Magento\Downloadable\Api\Data\File\ContentExtensionInterface|null
*/
public function getExtensionAttributes();
/**
* Set an extension attributes object.
*
* @param \Magento\Downloadable\Api\Data\File\ContentExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(
\Magento\Downloadable\Api\Data\File\ContentExtensionInterface $extensionAttributes
);
}