1 | <?php |
||
20 | final class PerChannelCustomerStatistics |
||
21 | { |
||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | private $ordersCount; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | private $ordersValue; |
||
31 | |||
32 | /** |
||
33 | * @var ChannelInterface |
||
34 | */ |
||
35 | private $channel; |
||
36 | |||
37 | /** |
||
38 | * @param int $ordersCount |
||
39 | * @param int $ordersValue |
||
40 | * @param ChannelInterface $channel |
||
41 | * |
||
42 | * @throws \InvalidArgumentException |
||
43 | */ |
||
44 | public function __construct($ordersCount, $ordersValue, ChannelInterface $channel) |
||
52 | |||
53 | /** |
||
54 | * @return int |
||
55 | */ |
||
56 | public function getOrdersCount() |
||
60 | |||
61 | /** |
||
62 | * @return int |
||
63 | */ |
||
64 | public function getOrdersValue() |
||
68 | |||
69 | /** |
||
70 | * @return ChannelInterface |
||
71 | */ |
||
72 | public function getChannel() |
||
76 | |||
77 | /** |
||
78 | * @return int |
||
79 | */ |
||
80 | public function getAverageOrderValue() |
||
84 | } |
||
85 |