|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| getSku () | |
| setSku (?string $sku) | |
| getSourceCode () | |
| setSourceCode (?string $sourceCode) | |
| getQuantity () | |
| setQuantity (?float $quantity) | |
| getStatus () | |
| setStatus (?int $status) | |
| getExtensionAttributes () | |
| setExtensionAttributes (SourceItemExtensionInterface $extensionAttributes) | |
Public Member Functions inherited from AbstractExtensibleModel | |
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
| getCustomAttributes () | |
| getCustomAttribute ($attributeCode) | |
| setCustomAttributes (array $attributes) | |
| setCustomAttribute ($attributeCode, $attributeValue) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| setId ($value) | |
| __sleep () | |
| __wakeup () | |
Public Member Functions inherited from AbstractModel | |
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
| __sleep () | |
| __wakeup () | |
| setIdFieldName ($name) | |
| getIdFieldName () | |
| getId () | |
| setId ($value) | |
| isDeleted ($isDeleted=null) | |
| hasDataChanges () | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| setDataChanges ($value) | |
| getOrigData ($key=null) | |
| setOrigData ($key=null, $data=null) | |
| dataHasChangedFor ($field) | |
| getResourceName () | |
| getResourceCollection () | |
| getCollection () | |
| load ($modelId, $field=null) | |
| beforeLoad ($identifier, $field=null) | |
| afterLoad () | |
| isSaveAllowed () | |
| setHasDataChanges ($flag) | |
| save () | |
| afterCommitCallback () | |
| isObjectNew ($flag=null) | |
| beforeSave () | |
| validateBeforeSave () | |
| getCacheTags () | |
| cleanModelCache () | |
| afterSave () | |
| delete () | |
| beforeDelete () | |
| afterDelete () | |
| afterDeleteCommit () | |
| getResource () | |
| getEntityId () | |
| setEntityId ($entityId) | |
| clearInstance () | |
| getStoredData () | |
| getEventPrefix () | |
Public Member Functions inherited from DataObject | |
| __construct (array $data=[]) | |
| addData (array $arr) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| getDataByPath ($path) | |
| getDataByKey ($key) | |
| setDataUsingMethod ($key, $args=[]) | |
| getDataUsingMethod ($key, $args=null) | |
| hasData ($key='') | |
| toArray (array $keys=[]) | |
| convertToArray (array $keys=[]) | |
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| toJson (array $keys=[]) | |
| convertToJson (array $keys=[]) | |
| toString ($format='') | |
| __call ($method, $args) | |
| isEmpty () | |
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
| debug ($data=null, &$objects=[]) | |
| offsetSet ($offset, $value) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
| offsetGet ($offset) | |
Public Member Functions inherited from SourceItemInterface | |
| setExtensionAttributes (\Magento\InventoryApi\Api\Data\SourceItemExtensionInterface $extensionAttributes) | |
Protected Member Functions | |
| _construct () | |
Protected Member Functions inherited from AbstractExtensibleModel | |
| filterCustomAttributes ($data) | |
| initializeCustomAttributes () | |
| convertCustomAttributeValues (array &$customAttributes) | |
| getCustomAttributesCodes () | |
| _setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes) | |
| _getExtensionAttributes () | |
Protected Member Functions inherited from AbstractModel | |
| _construct () | |
| _init ($resourceModel) | |
| _setResourceModel ($resourceName, $collectionName=null) | |
| _getResource () | |
| _getEventData () | |
| _beforeLoad ($modelId, $field=null) | |
| _afterLoad () | |
| _hasModelChanged () | |
| _getValidatorBeforeSave () | |
| _createValidatorBeforeSave () | |
| _getValidationRulesBeforeSave () | |
| _clearReferences () | |
| _clearData () | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
|
protected |
Definition at line 25 of file SourceItem.php.
| getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object
Implements SourceItemInterface.
Definition at line 101 of file SourceItem.php.
| getQuantity | ( | ) |
Get source item quantity
Implements SourceItemInterface.
Definition at line 65 of file SourceItem.php.
| getSku | ( | ) |
#- Get source item sku
Implements SourceItemInterface.
Definition at line 33 of file SourceItem.php.
| getSourceCode | ( | ) |
Get source code
Implements SourceItemInterface.
Definition at line 49 of file SourceItem.php.
| getStatus | ( | ) |
Get source item status (One of self::STATUS_*)
Implements SourceItemInterface.
Definition at line 83 of file SourceItem.php.
| setExtensionAttributes | ( | SourceItemExtensionInterface | $extensionAttributes | ) |
Definition at line 114 of file SourceItem.php.
| setQuantity | ( | ?float | $quantity | ) |
Set source item quantity
| float | null | $quantity |
Implements SourceItemInterface.
Definition at line 75 of file SourceItem.php.
| setSku | ( | ?string | $sku | ) |
Set source item sku
| string | null | $sku |
Implements SourceItemInterface.
Definition at line 41 of file SourceItem.php.
| setSourceCode | ( | ?string | $sourceCode | ) |
Set source code
| string | null | $sourceCode |
Implements SourceItemInterface.
Definition at line 57 of file SourceItem.php.
| setStatus | ( | ?int | $status | ) |
Set source item status (One of self::STATUS_*)
| int | null | $status |
Implements SourceItemInterface.
Definition at line 93 of file SourceItem.php.