| Total Complexity | 2 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | class InventoryChangedRequestEntity extends RequestEntity |
||
| 28 | { |
||
| 29 | const UNDERSCORE_ON_SERIALIZATION = false; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Subscription external id. |
||
| 33 | * Required for all requests. |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $externalId; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Target product SKU |
||
| 41 | * |
||
| 42 | * @var string |
||
| 43 | */ |
||
| 44 | protected $sku; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Unsigned diff between previous and current states. |
||
| 48 | * Addition or subtraction is indicated by endpoint this entity sent to. |
||
| 49 | * |
||
| 50 | * @var int |
||
| 51 | */ |
||
| 52 | protected $quantity; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $sku |
||
| 56 | * @return static |
||
| 57 | */ |
||
| 58 | public function setSku($sku) |
||
| 59 | { |
||
| 60 | $this->sku = (string) $sku; |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function getRequired() |
||
| 74 | ]; |
||
| 75 | } |
||
| 77 |