original_string: public function setCommandOptions(array $options)
      {
          foreach ($options as $name => $option) {
              if ((!$option instanceof Parameter\Option)) {
                  throw new \Parable\Console\Exception(
                      "Options must be instances of Parameter\\Option. {$name} is not."
                  );
              }
              $this->commandOptions[$option->getName()] = $option;
          }
          return $this;
      }
code: public function setCommandOptions(array $options)
      {
          foreach ($options as $name => $option) {
              if ((!$option instanceof Parameter\Option)) {
                  throw new \Parable\Console\Exception(
                      "Options must be instances of Parameter\\Option. {$name} is not."
                  );
              }
              $this->commandOptions[$option->getName()] = $option;
          }
          return $this;
      }
code_tokens: public function setCommandOptions ( array $ options ) { foreach ( $ options as $ name => $ option ) { if ( ( ! $ option instanceof Parameter \ Option ) ) { throw new \ Parable \ Console \ Exception ( "Options must be instances of Parameter\\Option. {$name} is not." ) ; } $ this -> commandOptions [ $ option -> getName ( ) ] = $ option ; } return $ this ; }
docstring: Set the options from a command.
  
  @param \Parable\Console\Parameter\Option[] $options
  
  @return $this
  @throws \Parable\Console\Exception
docstring_tokens: Set the options from a command .