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\Catalog\Api;
/**
* Tier prices storage.
* @api
* @since 102.0.0
*/
interface TierPriceStorageInterface
{
/**
* Return product prices. In case of at least one of skus is not found exception will be thrown.
*
* @param string[] $skus
* @return \Magento\Catalog\Api\Data\TierPriceInterface[]
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @since 102.0.0
*/
public function get(array $skus);
/**
* Add or update product prices.
* If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be
* marked as failed and excluded from update list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* with problem description will be returned.
* If there were no failed items during update empty array will be returned.
* If error occurred during the update exception will be thrown.
*
* @param \Magento\Catalog\Api\Data\TierPriceInterface[] $prices
* @return \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* @since 102.0.0
*/
public function update(array $prices);
/**
* Remove existing tier prices and replace them with the new ones.
* If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be
* marked as failed and excluded from replace list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* with problem description will be returned.
* If there were no failed items during update empty array will be returned.
* If error occurred during the update exception will be thrown.
*
* @param \Magento\Catalog\Api\Data\TierPriceInterface[] $prices
* @return \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* @since 102.0.0
*/
public function replace(array $prices);
/**
* Delete product tier prices.
* If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be
* marked as failed and excluded from delete list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* with problem description will be returned.
* If there were no failed items during update empty array will be returned.
* If error occurred during the update exception will be thrown.
*
* @param \Magento\Catalog\Api\Data\TierPriceInterface[] $prices
* @return \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* @since 102.0.0
*/
public function delete(array $prices);
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Api;
/**
* Tier prices storage.
* @api
* @since 102.0.0
*/
interface TierPriceStorageInterface
{
/**
* Return product prices. In case of at least one of skus is not found exception will be thrown.
*
* @param string[] $skus
* @return \Magento\Catalog\Api\Data\TierPriceInterface[]
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @since 102.0.0
*/
public function get(array $skus);
/**
* Add or update product prices.
* If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be
* marked as failed and excluded from update list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* with problem description will be returned.
* If there were no failed items during update empty array will be returned.
* If error occurred during the update exception will be thrown.
*
* @param \Magento\Catalog\Api\Data\TierPriceInterface[] $prices
* @return \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* @since 102.0.0
*/
public function update(array $prices);
/**
* Remove existing tier prices and replace them with the new ones.
* If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be
* marked as failed and excluded from replace list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* with problem description will be returned.
* If there were no failed items during update empty array will be returned.
* If error occurred during the update exception will be thrown.
*
* @param \Magento\Catalog\Api\Data\TierPriceInterface[] $prices
* @return \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* @since 102.0.0
*/
public function replace(array $prices);
/**
* Delete product tier prices.
* If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be
* marked as failed and excluded from delete list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* with problem description will be returned.
* If there were no failed items during update empty array will be returned.
* If error occurred during the update exception will be thrown.
*
* @param \Magento\Catalog\Api\Data\TierPriceInterface[] $prices
* @return \Magento\Catalog\Api\Data\PriceUpdateResultInterface[]
* @since 102.0.0
*/
public function delete(array $prices);
}
Function Calls
None |
Stats
MD5 | 420dd3d67cf3517a705bb3710a4c8685 |
Eval Count | 0 |
Decode Time | 87 ms |