| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class Primitive implements Argument |
||
| 16 | { |
||
| 17 | private $value; |
||
| 18 | |||
| 19 | 36 | public function __construct($value) |
|
| 20 | { |
||
| 21 | 36 | $this->value = $value; |
|
| 22 | 36 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | 20 | public static function fromValue($value, Arguments $arguments): Argument |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 13 | public function resolve( |
|
| 36 | StreamInterface $built, |
||
| 37 | Services $services |
||
| 38 | ): StreamInterface { |
||
| 39 | 13 | return $built->add($this->value); |
|
| 40 | } |
||
| 41 | |||
| 42 | 6 | public function compile(): CompiledArgument |
|
| 45 | } |
||
| 46 | } |
||
| 47 |