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