| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Event |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $sName; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Call |
||
| 16 | */ |
||
| 17 | private $xHandler; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The constructor. |
||
| 21 | * |
||
| 22 | * @param string $sName The event name |
||
| 23 | * @param Call $xHandler The event handler |
||
| 24 | */ |
||
| 25 | public function __construct(string $sName, Call $xHandler) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Convert this call to array, when converting the response into json. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function jsonSerialize(): array |
||
| 45 |