| 1 | <?php |
||
| 10 | class Stats |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Gateway |
||
| 15 | */ |
||
| 16 | private $gateway; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param Gateway $gateway |
||
| 20 | */ |
||
| 21 | 5 | public function __construct(Gateway $gateway) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $values |
||
| 28 | */ |
||
| 29 | 1 | public function increase(array $values) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $values |
||
| 36 | */ |
||
| 37 | 2 | public function set(array $values) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return int[] |
||
| 46 | */ |
||
| 47 | 1 | public function getAll() : array |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $key |
||
| 54 | * @return int |
||
| 55 | */ |
||
| 56 | 1 | public function get(string $key) : int |
|
| 60 | } |
||
| 61 |