public function setCommandArguments(array $arguments)
    {
        $orderedArguments = [];
        foreach ($arguments as $index => $argument) {
            if (!($argument instanceof Parameter\Argument)) {
                throw new \Parable\Console\Exception(
                    "Arguments must be instances of Parameter\\Argument. The item at index {$index} is not."
                );
            }

            $argument->setOrder($index);
            $orderedArguments[$index] = $argument;
        }
        $this->commandArguments = $orderedArguments;

        return $this;
    }
public function setCommandArguments(array $arguments)
    {
        $orderedArguments = [];
        foreach ($arguments as $index => $argument) {
            if (!($argument instanceof Parameter\Argument)) {
                throw new \Parable\Console\Exception(
                    "Arguments must be instances of Parameter\\Argument. The item at index {$index} is not."
                );
            }

            $argument->setOrder($index);
            $orderedArguments[$index] = $argument;
        }
        $this->commandArguments = $orderedArguments;

        return $this;
    }
public function setCommandArguments ( array $ arguments ) { $ orderedArguments = [ ] ; foreach ( $ arguments as $ index => $ argument ) { if ( ! ( $ argument instanceof Parameter \ Argument ) ) { throw new \ Parable \ Console \ Exception ( "Arguments must be instances of Parameter\\Argument. The item at index {$index} is not." ) ; } $ argument -> setOrder ( $ index ) ; $ orderedArguments [ $ index ] = $ argument ; } $ this -> commandArguments = $ orderedArguments ; return $ this ; }
Set the arguments from a command.

@param \Parable\Console\Parameter\Argument[] $arguments

@return $this
@throws \Parable\Console\Exception
Set the arguments from a command .