| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | class Event extends BaseEvent |
||
|
|
|||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var StatefulInterface |
||
| 17 | */ |
||
| 18 | protected $stateful; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $parameters; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Event constructor. |
||
| 27 | * |
||
| 28 | * @param StatefulInterface $stateful |
||
| 29 | * @param array $parameters |
||
| 30 | */ |
||
| 31 | 2 | public function __construct(StatefulInterface $stateful, array $parameters = []) |
|
| 32 | { |
||
| 33 | 2 | $this->stateful = $stateful; |
|
| 34 | 2 | $this->parameters = $parameters; |
|
| 35 | 2 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return StatefulInterface |
||
| 39 | */ |
||
| 40 | 1 | public function getStateful(): StatefulInterface |
|
| 41 | { |
||
| 42 | 1 | return $this->stateful; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | 1 | public function getParameters(): array |
|
| 51 | } |
||
| 52 | } |
||
| 53 |