Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class InputScope implements InputInterface |
||
20 | { |
||
21 | /** @var InputManager */ |
||
22 | private $input; |
||
23 | |||
24 | /** |
||
25 | * @param InputManager $input |
||
26 | */ |
||
27 | public function __construct(InputManager $input) |
||
28 | { |
||
29 | $this->input = $input; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public function withPrefix(string $prefix, bool $add = true): InputInterface |
||
36 | { |
||
37 | $input = clone $this; |
||
38 | $input->input = $this->input->withPrefix($prefix, $add); |
||
39 | |||
40 | return $input; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function getValue(string $source, string $name = null) |
||
53 | } |
||
54 | } |
||
55 |