| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Event |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $event; |
||
| 9 | |||
| 10 | /** @var array */ |
||
| 11 | private $arguments; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $event The event that is being emitted. |
||
| 15 | * @param array $arguments The array of arguments to send to the event callback. |
||
| 16 | */ |
||
| 17 | public function __construct(string $event, $arguments = []) |
||
| 18 | { |
||
| 19 | $this->event = $event; |
||
| 20 | $this->arguments = $arguments; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getArguments(): array |
||
| 24 | { |
||
| 25 | return $this->arguments; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getEvent(): string |
||
| 31 | } |
||
| 32 | } |
||
| 33 |