Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogInventory\Model\ResourceModel\Stock\Item;
use Magento\Framework\Data\AbstractCriteria;
use Magento\CatalogInventory\Model\ResourceModel\Stock\Item\StockItemCriteriaMapper;
/**
* Class StockItemCriteria
*/
class StockItemCriteria extends AbstractCriteria implements \Magento\CatalogInventory\Api\StockItemCriteriaInterface
{
/**
* @param string $mapper
*/
public function __construct($mapper = '')
{
$this->mapperInterfaceName = $mapper ?: StockItemCriteriaMapper::class;
$this->data['initial_condition'] = [true];
}
/**
* @inheritdoc
*/
public function setStockStatus($storeId = null)
{
$this->data['stock_status'] = func_get_args();
return true;
}
/**
* @inheritdoc
*/
public function setStockFilter($stock)
{
$this->data['stock_filter'] = [$stock];
return true;
}
/**
* @inheritdoc
*/
public function setScopeFilter($scope)
{
$this->data['website_filter'] = [$scope];
return true;
}
/**
* @inheritdoc
*/
public function setProductsFilter($products)
{
$this->data['products_filter'] = [$products];
return true;
}
/**
* @inheritdoc
*/
public function setManagedFilter($isStockManagedInConfig)
{
$this->data['managed_filter'] = [$isStockManagedInConfig];
return true;
}
/**
* @inheritdoc
*/
public function setQtyFilter($comparisonMethod, $qty)
{
$this->data['qty_filter'] = [$comparisonMethod, $qty];
return true;
}
/**
* Add Criteria object
*
* @param \Magento\CatalogInventory\Api\StockItemCriteriaInterface $criteria
* @return bool
*/
public function addCriteria(\Magento\CatalogInventory\Api\StockItemCriteriaInterface $criteria)
{
$this->data[self::PART_CRITERIA_LIST]['list'][] = $criteria;
return true;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogInventory\Model\ResourceModel\Stock\Item;
use Magento\Framework\Data\AbstractCriteria;
use Magento\CatalogInventory\Model\ResourceModel\Stock\Item\StockItemCriteriaMapper;
/**
* Class StockItemCriteria
*/
class StockItemCriteria extends AbstractCriteria implements \Magento\CatalogInventory\Api\StockItemCriteriaInterface
{
/**
* @param string $mapper
*/
public function __construct($mapper = '')
{
$this->mapperInterfaceName = $mapper ?: StockItemCriteriaMapper::class;
$this->data['initial_condition'] = [true];
}
/**
* @inheritdoc
*/
public function setStockStatus($storeId = null)
{
$this->data['stock_status'] = func_get_args();
return true;
}
/**
* @inheritdoc
*/
public function setStockFilter($stock)
{
$this->data['stock_filter'] = [$stock];
return true;
}
/**
* @inheritdoc
*/
public function setScopeFilter($scope)
{
$this->data['website_filter'] = [$scope];
return true;
}
/**
* @inheritdoc
*/
public function setProductsFilter($products)
{
$this->data['products_filter'] = [$products];
return true;
}
/**
* @inheritdoc
*/
public function setManagedFilter($isStockManagedInConfig)
{
$this->data['managed_filter'] = [$isStockManagedInConfig];
return true;
}
/**
* @inheritdoc
*/
public function setQtyFilter($comparisonMethod, $qty)
{
$this->data['qty_filter'] = [$comparisonMethod, $qty];
return true;
}
/**
* Add Criteria object
*
* @param \Magento\CatalogInventory\Api\StockItemCriteriaInterface $criteria
* @return bool
*/
public function addCriteria(\Magento\CatalogInventory\Api\StockItemCriteriaInterface $criteria)
{
$this->data[self::PART_CRITERIA_LIST]['list'][] = $criteria;
return true;
}
}
Function Calls
None |
Stats
MD5 | 29dae133eee90eac0235cefc970fa904 |
Eval Count | 0 |
Decode Time | 123 ms |