Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | abstract class DialogEvent extends Event |
||
16 | { |
||
17 | 1 | public function __construct( |
|
18 | Context $context, |
||
19 | DecisionCollection $decisionCollection, |
||
20 | protected Entity $subject, |
||
21 | protected DialogOption $dialogOption, |
||
22 | ) { |
||
23 | 1 | parent::__construct( |
|
24 | 1 | $context, |
|
25 | $decisionCollection, |
||
26 | ); |
||
27 | 1 | } |
|
28 | |||
29 | public function __invoke(Player $player, PlayerAction $playerAction): Decision |
||
38 | } |
||
39 | |||
40 | public function getSubject(): Entity |
||
45 |