Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
DataObject Class Reference
Inheritance diagram for DataObject:
AbstractExtensibleObject AbstractSimpleObject CustomAttributesDataInterface ExtensibleDataInterface

Public Member Functions

 getName ()
 
 setName ($name)
 
 getEntityId ()
 
 setEntityId ($entityId)
 
- Public Member Functions inherited from AbstractExtensibleObject
 __construct (\Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $attributeValueFactory, $data=[])
 
 getCustomAttribute ($attributeCode)
 
 getCustomAttributes ()
 
 setCustomAttributes (array $attributes)
 
- Public Member Functions inherited from AbstractSimpleObject
 __construct (array $data=[])
 
 setData ($key, $value)
 
 __toArray ()
 
- Public Member Functions inherited from CustomAttributesDataInterface
 setCustomAttribute ($attributeCode, $attributeValue)
 

Additional Inherited Members

- Data Fields inherited from AbstractExtensibleObject
const CUSTOM_ATTRIBUTES_KEY = 'custom_attributes'
 
- Data Fields inherited from CustomAttributesDataInterface
const CUSTOM_ATTRIBUTES = 'custom_attributes'
 
- Data Fields inherited from ExtensibleDataInterface
const EXTENSION_ATTRIBUTES_KEY = 'extension_attributes'
 
- Protected Member Functions inherited from AbstractExtensibleObject
 getCustomAttributesCodes ()
 
 _getExtensionAttributes ()
 
 _setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
 
- Protected Member Functions inherited from AbstractSimpleObject
 _get ($key)
 
- Protected Attributes inherited from AbstractExtensibleObject
 $extensionFactory
 
 $attributeValueFactory
 
 $customAttributesCodes
 
- Protected Attributes inherited from AbstractSimpleObject
 $_data
 

Detailed Description

Definition at line 8 of file DataObject.php.

Member Function Documentation

◆ getEntityId()

getEntityId ( )
Returns
int|null

Definition at line 30 of file DataObject.php.

31  {
32  return $this->_get('entity_id');
33  }

◆ getName()

getName ( )
Returns
string

Definition at line 13 of file DataObject.php.

14  {
15  return $this->_get('name');
16  }

◆ setEntityId()

setEntityId (   $entityId)
Parameters
int$entityId
Returns
$this

Definition at line 39 of file DataObject.php.

40  {
41  return $this->setData('entity_id', $entityId);
42  }

◆ setName()

setName (   $name)
Parameters
string$name
Returns
$this

Definition at line 22 of file DataObject.php.

23  {
24  return $this->setData('name', $name);
25  }
if(!isset($_GET['name'])) $name
Definition: log.php:14

The documentation for this class was generated from the following file: