| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 4 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | class Event |
||
| 8 | { |
||
| 9 | /** @const string event type*/ |
||
| 10 | const EVENT_TYPE = ''; |
||
| 11 | |||
| 12 | /** @var mixed $payload Event payload */ |
||
| 13 | protected $payload; |
||
| 14 | /** |
||
| 15 | * Get event type |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | 2 | public static function getEventType(): string |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public function __construct($payload = null) |
|
| 29 |