1 | <?php |
||
9 | class Statistics |
||
10 | { |
||
11 | /** |
||
12 | * Returns the count of all pokes. |
||
13 | * |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public function totalPokes() |
||
22 | |||
23 | /** |
||
24 | * Returns the the count of all devices. |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function totalDevices() |
||
32 | |||
33 | /** |
||
34 | * Returns all pokes. |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function allPokes() |
||
42 | |||
43 | /** |
||
44 | * Returns a collection of all networks and it's count. |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function networkDistribution() |
||
56 | |||
57 | private function addColors($data) |
||
67 | } |
||
68 |