| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class Decorate implements Argument |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | 33 | public static function fromValue($value, Arguments $arguments): Argument |
|
| 23 | { |
||
| 24 | 33 | if ($value !== '@decorated') { |
|
| 25 | 23 | throw new ValueNotSupported; |
|
| 26 | } |
||
| 27 | |||
| 28 | 18 | return new self; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 1 | public function resolve( |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function compile(): CompiledArgument |
|
| 44 | } |
||
| 45 | } |
||
| 46 |