Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 28 | public function generateCode(string $name, AttributesProcessorGenerator $generator, ReflectionAttribute $attribute): void |
|
20 | { |
||
21 | /** @var class-string $constraint */ |
||
22 | 28 | $constraint = $attribute->getName(); |
|
23 | 28 | $generator->line('$?->?(?);', [$name, $this->methodName(), $generator->new($constraint, $attribute->getArguments())]); |
|
24 | } |
||
33 |