| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class SetterStrategy implements InjectionStrategy |
||
| 13 | { |
||
| 14 | private Str $setter; |
||
| 15 | |||
| 16 | 6 | public function __construct() |
|
| 19 | 6 | } |
|
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | 9 | public function supports(object $object, string $property, $value): bool |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | 5 | */ |
|
| 42 | public function inject(object $object, string $property, $value): object |
||
| 59 |