original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Set the arguments from a command.
  
  @param \Parable\Console\Parameter\Argument[] $arguments
  
  @return $this
  @throws \Parable\Console\Exception
docstring_tokens: Set the arguments from a command .