Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function __invoke(InterpretInterface $command, $state) |
||
21 | { |
||
22 | if (!$command->subject() instanceof FileType) { |
||
23 | return $command->interpreter()->next($command, $state); |
||
24 | } |
||
25 | |||
26 | $file = $command->subject(); |
||
27 | |||
28 | $state['constants'] = $this->convertItems( |
||
29 | $file->getConstants(), |
||
30 | $command->interpreter(), |
||
31 | $command->context() |
||
32 | ); |
||
33 | |||
34 | $state = $command->interpreter()->next($command, $state); |
||
35 | |||
36 | return $state; |
||
37 | } |
||
38 | } |
||
39 |