public function applyWhere(BaseCollection &$collection) { if ($this->where) { $collection->setWhere($this->where); } }