src/ADT/OptionObject.php
public function getOption( $key, $throwException = TRUE )
	{
		if( !$this->hasOption( $key ) )
		{
			if( $throwException )
				throw new OutOfRangeException( 'Option "'.$key.'" is not defined' );
			return NULL;
		}
		return $this->options[$key];
	}
public function getOption( $key, $throwException = TRUE )
	{
		if( !$this->hasOption( $key ) )
		{
			if( $throwException )
				throw new OutOfRangeException( 'Option "'.$key.'" is not defined' );
			return NULL;
		}
		return $this->options[$key];
	}
public function getOption ( $ key , $ throwException = TRUE ) { if ( ! $ this -> hasOption ( $ key ) ) { if ( $ throwException ) throw new OutOfRangeException ( 'Option "' . $ key . '" is not defined' ) ; return NULL ; } return $ this -> options [ $ key ] ; }
Returns an Option Value by Option Key.
@access		public
@param		string		$key			Option Key
@param		bool		$throwException	Flag: throw Exception is key is not set, NULL otherwise
@throws		OutOfRangeException			if key is not set and $throwException is true
@return		mixed
Returns an Option Value by Option Key .