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