| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class Decorate implements Argument |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 5 | public static function fromValue($value): Argument |
|
| 20 | { |
||
| 21 | 5 | if ($value !== '@decorated') { |
|
| 22 | 1 | throw new ValueNotSupported; |
|
| 23 | } |
||
| 24 | |||
| 25 | 4 | return new self; |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | 1 | public function resolve( |
|
| 36 | } |
||
| 37 | } |
||
| 38 |