Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class EntityDefinition implements |
||
14 | HasEventName |
||
15 | { |
||
16 | /** @param ArrayObject $definition<'description'|'fields'|'name'|'resolveField', mixed> */ |
||
17 | public function __construct( |
||
18 | protected readonly ArrayObject $definition, |
||
19 | protected readonly string $eventName, |
||
20 | ) { |
||
21 | } |
||
22 | |||
23 | public function eventName(): string |
||
24 | { |
||
25 | return $this->eventName; |
||
26 | } |
||
27 | |||
28 | public function getDefinition(): ArrayObject |
||
31 | } |
||
32 | } |
||
33 |