| Current Path : /var/www/html/generated/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Item/ |
| Current File : /var/www/html/generated/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Item/Proxy.php |
<?php
namespace Magento\CatalogInventory\Model\ResourceModel\Stock\Item;
/**
* Proxy class for @see \Magento\CatalogInventory\Model\ResourceModel\Stock\Item
*/
class Proxy extends \Magento\CatalogInventory\Model\ResourceModel\Stock\Item implements \Magento\Framework\ObjectManager\NoninterceptableInterface
{
/**
* Object Manager instance
*
* @var \Magento\Framework\ObjectManagerInterface
*/
protected $_objectManager = null;
/**
* Proxied instance name
*
* @var string
*/
protected $_instanceName = null;
/**
* Proxied instance
*
* @var \Magento\CatalogInventory\Model\ResourceModel\Stock\Item
*/
protected $_subject = null;
/**
* Instance shareability flag
*
* @var bool
*/
protected $_isShared = null;
/**
* Proxy constructor
*
* @param \Magento\Framework\ObjectManagerInterface $objectManager
* @param string $instanceName
* @param bool $shared
*/
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName = '\\Magento\\CatalogInventory\\Model\\ResourceModel\\Stock\\Item', $shared = true)
{
$this->_objectManager = $objectManager;
$this->_instanceName = $instanceName;
$this->_isShared = $shared;
}
/**
* @return array
*/
public function __sleep()
{
return ['_subject', '_isShared', '_instanceName'];
}
/**
* Retrieve ObjectManager from global scope
*/
public function __wakeup()
{
$this->_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
}
/**
* Clone proxied instance
*/
public function __clone()
{
$this->_subject = clone $this->_getSubject();
}
/**
* Get proxied instance
*
* @return \Magento\CatalogInventory\Model\ResourceModel\Stock\Item
*/
protected function _getSubject()
{
if (!$this->_subject) {
$this->_subject = true === $this->_isShared
? $this->_objectManager->get($this->_instanceName)
: $this->_objectManager->create($this->_instanceName);
}
return $this->_subject;
}
/**
* {@inheritdoc}
*/
public function loadByProductId(\Magento\CatalogInventory\Api\Data\StockItemInterface $item, $productId, $stockId)
{
return $this->_getSubject()->loadByProductId($item, $productId, $stockId);
}
/**
* {@inheritdoc}
*/
public function setProcessIndexEvents($process = true)
{
return $this->_getSubject()->setProcessIndexEvents($process);
}
/**
* {@inheritdoc}
*/
public function updateSetOutOfStock(int $websiteId)
{
return $this->_getSubject()->updateSetOutOfStock($websiteId);
}
/**
* {@inheritdoc}
*/
public function updateSetInStock(int $websiteId)
{
return $this->_getSubject()->updateSetInStock($websiteId);
}
/**
* {@inheritdoc}
*/
public function updateLowStockDate(int $websiteId)
{
return $this->_getSubject()->updateLowStockDate($websiteId);
}
/**
* {@inheritdoc}
*/
public function getManageStockExpr(string $tableAlias = '') : \Zend_Db_Expr
{
return $this->_getSubject()->getManageStockExpr($tableAlias);
}
/**
* {@inheritdoc}
*/
public function getBackordersExpr(string $tableAlias = '') : \Zend_Db_Expr
{
return $this->_getSubject()->getBackordersExpr($tableAlias);
}
/**
* {@inheritdoc}
*/
public function getMinSaleQtyExpr(string $tableAlias = '') : \Zend_Db_Expr
{
return $this->_getSubject()->getMinSaleQtyExpr($tableAlias);
}
/**
* {@inheritdoc}
*/
public function getIdFieldName()
{
return $this->_getSubject()->getIdFieldName();
}
/**
* {@inheritdoc}
*/
public function getMainTable()
{
return $this->_getSubject()->getMainTable();
}
/**
* {@inheritdoc}
*/
public function getTable($tableName)
{
return $this->_getSubject()->getTable($tableName);
}
/**
* {@inheritdoc}
*/
public function getConnection()
{
return $this->_getSubject()->getConnection();
}
/**
* {@inheritdoc}
*/
public function load(\Magento\Framework\Model\AbstractModel $object, $value, $field = null)
{
return $this->_getSubject()->load($object, $value, $field);
}
/**
* {@inheritdoc}
*/
public function save(\Magento\Framework\Model\AbstractModel $object)
{
return $this->_getSubject()->save($object);
}
/**
* {@inheritdoc}
*/
public function delete(\Magento\Framework\Model\AbstractModel $object)
{
return $this->_getSubject()->delete($object);
}
/**
* {@inheritdoc}
*/
public function addUniqueField($field)
{
return $this->_getSubject()->addUniqueField($field);
}
/**
* {@inheritdoc}
*/
public function resetUniqueField()
{
return $this->_getSubject()->resetUniqueField();
}
/**
* {@inheritdoc}
*/
public function unserializeFields(\Magento\Framework\Model\AbstractModel $object)
{
return $this->_getSubject()->unserializeFields($object);
}
/**
* {@inheritdoc}
*/
public function getUniqueFields()
{
return $this->_getSubject()->getUniqueFields();
}
/**
* {@inheritdoc}
*/
public function hasDataChanged($object)
{
return $this->_getSubject()->hasDataChanged($object);
}
/**
* {@inheritdoc}
*/
public function getChecksum($table)
{
return $this->_getSubject()->getChecksum($table);
}
/**
* {@inheritdoc}
*/
public function afterLoad(\Magento\Framework\DataObject $object)
{
return $this->_getSubject()->afterLoad($object);
}
/**
* {@inheritdoc}
*/
public function beforeSave(\Magento\Framework\DataObject $object)
{
return $this->_getSubject()->beforeSave($object);
}
/**
* {@inheritdoc}
*/
public function afterSave(\Magento\Framework\DataObject $object)
{
return $this->_getSubject()->afterSave($object);
}
/**
* {@inheritdoc}
*/
public function beforeDelete(\Magento\Framework\DataObject $object)
{
return $this->_getSubject()->beforeDelete($object);
}
/**
* {@inheritdoc}
*/
public function afterDelete(\Magento\Framework\DataObject $object)
{
return $this->_getSubject()->afterDelete($object);
}
/**
* {@inheritdoc}
*/
public function serializeFields(\Magento\Framework\Model\AbstractModel $object)
{
return $this->_getSubject()->serializeFields($object);
}
/**
* {@inheritdoc}
*/
public function beginTransaction()
{
return $this->_getSubject()->beginTransaction();
}
/**
* {@inheritdoc}
*/
public function addCommitCallback($callback)
{
return $this->_getSubject()->addCommitCallback($callback);
}
/**
* {@inheritdoc}
*/
public function commit()
{
return $this->_getSubject()->commit();
}
/**
* {@inheritdoc}
*/
public function rollBack()
{
return $this->_getSubject()->rollBack();
}
/**
* {@inheritdoc}
*/
public function getValidationRulesBeforeSave()
{
return $this->_getSubject()->getValidationRulesBeforeSave();
}
}