| 1 | <?php |
||
| 18 | class Order implements OrderInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var int|string|null |
||
| 22 | */ |
||
| 23 | protected $id; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var CustomerInterface |
||
| 27 | */ |
||
| 28 | protected $customer; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var ActionInterface[] array: actionKey => action |
||
| 32 | */ |
||
| 33 | protected $actions = []; |
||
| 34 | |||
| 35 | public function __construct($id, CustomerInterface $customer, array $actions = []) |
||
| 41 | |||
| 42 | public function getId() |
||
| 46 | |||
| 47 | public function getCustomer() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Returns actions. |
||
| 54 | * @return ActionInterface[] array: actionKey => action |
||
| 55 | */ |
||
| 56 | public function getActions() |
||
| 60 | |||
| 61 | public function jsonSerialize() |
||
| 65 | } |
||
| 66 |