public function statement($query, $bindings = array(), $rawResults = false)
    {
        return $this->run($query, $bindings, function(self $me, $query, array $bindings) use($rawResults)
        {
            if ($me->pretending()) return true;

            $statement = $me->getCypherQuery($query, $bindings);

            $result = $statement->getResultSet();

            return ($rawResults === true) ? $result : $result instanceof ResultSet;
        });
    }
public function statement($query, $bindings = array(), $rawResults = false)
    {
        return $this->run($query, $bindings, function(self $me, $query, array $bindings) use($rawResults)
        {
            if ($me->pretending()) return true;

            $statement = $me->getCypherQuery($query, $bindings);

            $result = $statement->getResultSet();

            return ($rawResults === true) ? $result : $result instanceof ResultSet;
        });
    }
public function statement ( $ query , $ bindings = array ( ) , $ rawResults = false ) { return $ this -> run ( $ query , $ bindings , function ( self $ me , $ query , array $ bindings ) use ( $ rawResults ) { if ( $ me -> pretending ( ) ) return true ; $ statement = $ me -> getCypherQuery ( $ query , $ bindings ) ; $ result = $ statement -> getResultSet ( ) ; return ( $ rawResults === true ) ? $ result : $ result instanceof ResultSet ; } ) ; }
Execute a Cypher statement and return the boolean result.

@param  string  $query
@param  array   $bindings
@return bool|\Everyman\Neo4j\Query\ResultSet When $result is set to true.
Execute a Cypher statement and return the boolean result .