Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function getActions(\ReflectionClass $entity, array $actions): array |
||
20 | { |
||
21 | $annotations = $this->annotationReader->getClassAnnotations($entity); |
||
22 | |||
23 | foreach ($annotations as $annotation) { |
||
24 | if (!$this->isSupported($annotation)) { |
||
25 | continue; |
||
26 | } |
||
27 | |||
28 | $actions[random_int(-99999, 99999)]['template'] = $annotation->template; |
||
29 | } |
||
30 | |||
31 | return $actions; |
||
32 | } |
||
36 |