| 1 | <?php |
||
| 11 | class Stats |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Gateway |
||
| 16 | */ |
||
| 17 | private $gateway; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @Inject("@Stats.Gateway") |
||
| 21 | * @param Gateway $gateway |
||
| 22 | */ |
||
| 23 | public function __construct(Gateway $gateway) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $values |
||
| 30 | */ |
||
| 31 | public function increase(array $values) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param array $values |
||
| 38 | */ |
||
| 39 | public function set(array $values) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return int[] |
||
| 48 | */ |
||
| 49 | public function getAll() : array |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $key |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | public function get(string $key) : int |
||
| 62 | } |
||
| 63 |