Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class EventCreator implements EventCreatorContract |
||
15 | { |
||
16 | private const ARGUMENT = 'argument'; |
||
17 | |||
18 | /** |
||
19 | * @var Application |
||
20 | */ |
||
21 | private $application; |
||
22 | |||
23 | /** |
||
24 | * EventCreator constructor. |
||
25 | * |
||
26 | * @param Application $application |
||
27 | */ |
||
28 | public function __construct(Application $application) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param string $eventClassName |
||
35 | * @param Trackable $trackable |
||
36 | * |
||
37 | * @throws TrackableEventCreationFailed |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function createForTrackable(string $eventClassName, Trackable $trackable) |
||
52 |