12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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
- );
- }
|