1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* @file |
5
|
|
|
* Magento API Client (SOAP v1). |
6
|
|
|
* Allows wrappers for each call, dependencies injections |
7
|
|
|
* and code completion. |
8
|
|
|
* |
9
|
|
|
* @author Sébastien MALOT <[email protected]> |
10
|
|
|
* @license MIT |
11
|
|
|
* @url <https://github.com/smalot/magento-client> |
12
|
|
|
* |
13
|
|
|
* For the full copyright and license information, please view the LICENSE |
14
|
|
|
* file that was distributed with this source code. |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
namespace Smalot\Magento\Catalog; |
18
|
|
|
|
19
|
|
|
use Smalot\Magento\ActionInterface; |
20
|
|
|
use Smalot\Magento\MagentoModuleAbstract; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* Class ProductTierPrice |
24
|
|
|
* |
25
|
|
|
* @package Smalot\Magento\Catalog |
26
|
|
|
*/ |
27
|
|
|
class ProductTierPrice extends MagentoModuleAbstract |
28
|
|
|
{ |
29
|
|
|
/** |
30
|
|
|
* Allows you to retrieve information about product tier prices. |
31
|
|
|
* |
32
|
|
|
* @param string $productId |
33
|
|
|
* @param string $identifierType |
34
|
|
|
* |
35
|
|
|
* @return ActionInterface |
36
|
|
|
*/ |
37
|
|
|
public function getInfo($productId, $identifierType = null) |
|
|
|
|
38
|
|
|
{ |
39
|
|
|
return $this->__createAction('catalog_product_attribute_tier_price.info', func_get_args()); |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* Allows you to update the product tier prices. |
44
|
|
|
* |
45
|
|
|
* @param string $productId |
46
|
|
|
* @param array $tierPrices |
47
|
|
|
* @param string $identifierType |
48
|
|
|
* |
49
|
|
|
* @return ActionInterface |
50
|
|
|
*/ |
51
|
|
|
public function update($productId, $tierPrices, $identifierType = null) |
|
|
|
|
52
|
|
|
{ |
53
|
|
|
return $this->__createAction('catalog_product_attribute_tier_price.update', func_get_args()); |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.