Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | private function getQualifierKeyVarString(ReflectionMethod $method): string |
||
35 | { |
||
36 | $annotations = $method->getAnnotations(); |
||
37 | $names = []; |
||
38 | foreach ($annotations as $annotation) { |
||
39 | $qualifier = (new ReflectionClass($annotation))->getAnnotation(Qualifier::class); |
||
40 | if ($qualifier instanceof Qualifier) { |
||
41 | /** @var ?scalar $annotation->value */ |
||
42 | $value = $annotation->value ?? Name::ANY; // @phpstan-ignore-line |
||
43 | $names[] = sprintf('%s=%s', (string) $value, get_class($annotation)); // @phpstan-ignore-line |
||
44 | } |
||
45 | } |
||
46 | |||
47 | return implode(',', $names); |
||
48 | } |
||
50 |