public function getOptions($method = null)
    {
        if ($method === null) {
            return $this->_options;
        }

        if (!array_key_exists($method, $this->_options)) {
            $optionsClass = get_class($this->client) . "\\" . ucfirst($method);
            if (!class_exists($optionsClass)) {
                throw new ClassNotFoundException("$optionsClass Does Not Exist As Defined In ->getOptions($method)");
            }
            $this->_options[$method] = new $optionsClass;
        }

        return $this->_options[$method];
    }
public function getOptions($method = null)
    {
        if ($method === null) {
            return $this->_options;
        }

        if (!array_key_exists($method, $this->_options)) {
            $optionsClass = get_class($this->client) . "\\" . ucfirst($method);
            if (!class_exists($optionsClass)) {
                throw new ClassNotFoundException("$optionsClass Does Not Exist As Defined In ->getOptions($method)");
            }
            $this->_options[$method] = new $optionsClass;
        }

        return $this->_options[$method];
    }
public function getOptions ( $ method = null ) { if ( $ method === null ) { return $ this -> _options ; } if ( ! array_key_exists ( $ method , $ this -> _options ) ) { $ optionsClass = get_class ( $ this -> client ) . "\\" . ucfirst ( $ method ) ; if ( ! class_exists ( $ optionsClass ) ) { throw new ClassNotFoundException ( "$optionsClass Does Not Exist As Defined In ->getOptions($method)" ) ; } $ this -> _options [ $ method ] = new $ optionsClass ; } return $ this -> _options [ $ method ] ; }
Get an options object or all of them for current Api class

@param null $method
@return array|mixed
@throws ClassNotFoundException
Get an options object or all of them for current Api class