library/Adapter/Options/OptionsMap.php
protected function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw new Exception\RuntimeException(sprintf(
                'Option "%s" not found',
                $key
            ));
        }

        return $this->options[$key];
    }
protected function getOption($key)
    {
        if (!isset($this->options[$key])) {
            throw new Exception\RuntimeException(sprintf(
                'Option "%s" not found',
                $key
            ));
        }

        return $this->options[$key];
    }
protected function getOption ( $ key ) { if ( ! isset ( $ this -> options [ $ key ] ) ) { throw new Exception \ RuntimeException ( sprintf ( 'Option "%s" not found' , $ key ) ) ; } return $ this -> options [ $ key ] ; }
Option getter with check

Tip: call it into your getter methods.

@param $key
@return mixed
@throws Exception\RuntimeException
Option getter with check