| 1 | <?php |
||
| 19 | final class CustomerStatistics |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var PerChannelCustomerStatistics[] |
||
| 23 | */ |
||
| 24 | private $perChannelsStatistics; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param PerChannelCustomerStatistics[] $perChannelStatistics |
||
| 28 | */ |
||
| 29 | public function __construct(array $perChannelStatistics) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return int |
||
|
|
|||
| 38 | */ |
||
| 39 | public function getAllOrdersCount() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return PerChannelCustomerStatistics[] |
||
| 48 | */ |
||
| 49 | public function getPerChannelsStatistics() |
||
| 53 | } |
||
| 54 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.