Пример #1
0
 /**
  * Get query string
  *
  * @return string Return query string
  */
 public function getQuery()
 {
     $query = parent::getQuery();
     return "OPTIONAL {$query}";
 }
Пример #2
0
 public function testWhereMethod()
 {
     $match = new MatchClause($this->query, 'n');
     $where = $match->where('n.name = "John Doe"');
     $this->assertInstanceOf('EndyJasmi\\Neo4j\\Clause\\WhereClause', $where);
 }