| 1 | <?php |
||
| 10 | class Event extends AbstractEvent |
||
| 11 | { |
||
| 12 | |||
| 13 | const INCREASE = 'stats:increase'; |
||
| 14 | const SET = 'stats:set'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $key; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $value; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $eventName self::* |
||
| 28 | * @param string $key |
||
| 29 | * @param int $value |
||
| 30 | */ |
||
| 31 | public function __construct(string $eventName, string $key, int $value = 1) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | public function getValue() : int |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getKey() : string |
||
| 54 | } |
||
| 55 |