public function getOption($name) {
        if(!isset($this->options[$name])){
            throw new InvalidArgumentException(sprintf("The option name '%s' is invalid, available are %s.",$name, implode(",",array_keys($this->options))));
        }
        return $this->options[$name];
    }
public function getOption($name) {
        if(!isset($this->options[$name])){
            throw new InvalidArgumentException(sprintf("The option name '%s' is invalid, available are %s.",$name, implode(",",array_keys($this->options))));
        }
        return $this->options[$name];
    }
public function getOption ( $ name ) { if ( ! isset ( $ this -> options [ $ name ] ) ) { throw new InvalidArgumentException ( sprintf ( "The option name '%s' is invalid, available are %s." , $ name , implode ( "," , array_keys ( $ this -> options ) ) ) ) ; } return $ this -> options [ $ name ] ; }
Retorna una opcion
@param type $name
@return type
@throws InvalidArgumentException
Retorna una opcion