| Total Complexity | 1 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | class InventoryChangedEntity extends MessageEntity |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * Target product SKU |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $sku; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Diff between previous and current states (+/-) |
||
| 42 | * |
||
| 43 | * @var int|null |
||
| 44 | */ |
||
| 45 | protected $quantity; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Actual quantity after this action |
||
| 49 | * |
||
| 50 | * @var int |
||
| 51 | */ |
||
| 52 | protected $stock; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getRequired() |
||
| 65 |