public function matches($where) { $where = Where::create($where)->toArray(); foreach ($where as $clause) { if (!$this->rowMatchesClause($clause)) { return false; } } return true; }