protected function _executeQuery(Query $query, array $options = [])
    {
        switch ($query->action()) {
            case Query::ACTION_CREATE:
                return $this->_executeCreateQuery($query, $options);
            case Query::ACTION_READ:
                return $this->_executeReadQuery($query, $options);
            case Query::ACTION_UPDATE:
                return $this->_executeUpdateQuery($query, $options);
            case Query::ACTION_DELETE:
                return $this->_executeDeleteQuery($query, $options);
        }

        return false;
    }
protected function _executeQuery(Query $query, array $options = [])
    {
        switch ($query->action()) {
            case Query::ACTION_CREATE:
                return $this->_executeCreateQuery($query, $options);
            case Query::ACTION_READ:
                return $this->_executeReadQuery($query, $options);
            case Query::ACTION_UPDATE:
                return $this->_executeUpdateQuery($query, $options);
            case Query::ACTION_DELETE:
                return $this->_executeDeleteQuery($query, $options);
        }

        return false;
    }
protected function _executeQuery ( Query $ query , array $ options = [ ] ) { switch ( $ query -> action ( ) ) { case Query :: ACTION_CREATE : return $ this -> _executeCreateQuery ( $ query , $ options ) ; case Query :: ACTION_READ : return $ this -> _executeReadQuery ( $ query , $ options ) ; case Query :: ACTION_UPDATE : return $ this -> _executeUpdateQuery ( $ query , $ options ) ; case Query :: ACTION_DELETE : return $ this -> _executeDeleteQuery ( $ query , $ options ) ; } return false ; }
Execute the appropriate method for a query

@param \Muffin\Webservice\Query $query The query to execute
@param array $options The options to use
@return bool|int|\Muffin\Webservice\ResultSet
Execute the appropriate method for a query