Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Content.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
15  const DATA = 'file_data';
16  const NAME = 'name';
17 
22  public function getFileData()
23  {
24  return $this->getData(self::DATA);
25  }
26 
31  public function getName()
32  {
33  return $this->getData(self::NAME);
34  }
35 
43  public function setFileData($fileData)
44  {
45  return $this->setData(self::DATA, $fileData);
46  }
47 
55  public function setName($name)
56  {
57  return $this->setData(self::NAME, $name);
58  }
59 
65  public function getExtensionAttributes()
66  {
67  return $this->_getExtensionAttributes();
68  }
69 
76  public function setExtensionAttributes(
77  \Magento\Downloadable\Api\Data\File\ContentExtensionInterface $extensionAttributes
78  ) {
79  return $this->_setExtensionAttributes($extensionAttributes);
80  }
81 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setExtensionAttributes(\Magento\Downloadable\Api\Data\File\ContentExtensionInterface $extensionAttributes)
Definition: Content.php:76
if(!isset($_GET['name'])) $name
Definition: log.php:14