Conditions | 4 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 13 |
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 | if ($file->getDocBlock() && $file->getDocBlock()->getTags()) { |
||
28 | $tags = $file->getDocBlock()->getTags(); |
||
29 | } else { |
||
30 | $tags = []; |
||
31 | } |
||
32 | |||
33 | $state['tags'] = $this->convertItems( |
||
34 | $tags, |
||
35 | $command->interpreter(), |
||
36 | $command->context() |
||
37 | ); |
||
38 | |||
39 | return $state; |
||
40 | } |
||
41 | } |
||
42 |