private function getWhereAssignments($combinedBy) { $whereAssignments = new WhereClause($this->where, $combinedBy); return [$whereAssignments->getClause(), $whereAssignments->getParams()]; }
/** @test */ public function it_cannot_be_instantiated_with_invalid_keyword() { $where = new WhereClause([['id', 'foo', 15]]); $this->assertEquals('', $where->getClause()); $this->assertEquals([], $where->getParams()); }
private function getWhereClause($where, $combinedBy) { $whereClause = new WhereClause($where, $combinedBy); return [$whereClause->getClause(), $whereClause->getParams()]; }