| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class Tunnel implements Argument |
||
| 18 | { |
||
| 19 | private $dependency; |
||
| 20 | private $argument; |
||
| 21 | |||
| 22 | 13 | public function __construct(Name $dependency, Argument $argument) |
|
| 23 | { |
||
| 24 | 13 | $this->dependency = $dependency; |
|
| 25 | 13 | $this->argument = $argument; |
|
| 26 | 13 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | 1 | public static function fromValue($value, Arguments $arguments): Argument |
|
| 32 | { |
||
| 33 | 1 | throw new LogicException('Can\'t be used outside Service::tunnel()'); |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | 2 | public function resolve( |
|
| 46 | } |
||
| 47 | |||
| 48 | 3 | public function compile(): CompiledArgument |
|
| 53 | ); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |