Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class UnionParameter extends Parameter |
||
12 | { |
||
13 | /** @var Parameter[] */ |
||
14 | private $parameters; |
||
15 | |||
16 | public function __construct(Parameter ...$parameters) |
||
23 | } |
||
24 | |||
25 | public function type(): string |
||
26 | { |
||
27 | return \implode('|', \array_map(static function(Parameter $param) { return $param->type(); }, $this->parameters)); |
||
28 | } |
||
29 | |||
30 | protected function valueFor(\ReflectionParameter $refParameter) |
||
41 | } |
||
42 | } |
||
43 |