| 1 | <?php namespace nyx\console\input\formats; |
||
| 14 | class Arr extends console\Input |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Constructs a new Array Input instance. |
||
| 18 | * |
||
| 19 | * @param iterable $parameters A map of input parameters (name => value). |
||
| 20 | */ |
||
| 21 | public function __construct(iterable $parameters) |
||
| 22 | { |
||
| 23 | $this->raw = $parameters instanceof interfaces\Tokens ? $parameters : new tokens\Arr($parameters); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | protected function parse() : console\Input |
||
| 43 | } |
||
| 44 |