Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | final class Stream implements Constructor |
||
14 | { |
||
15 | private $type; |
||
16 | private $arguments; |
||
17 | |||
18 | 5 | public function __construct(string $type, Argument ...$arguments) |
|
19 | { |
||
20 | 5 | $this->type = $type; |
|
21 | 5 | $this->arguments = ImmutableStream::of(Argument::class, ...$arguments)->map(static function(Argument $argument): Argument { |
|
22 | 3 | return new Lazy($argument); |
|
23 | 5 | });; |
|
24 | 5 | } |
|
25 | |||
26 | 3 | public function __toString(): string |
|
36 | } |
||
37 | } |
||
38 |