value === 'open' || $this->value === 'closed') { $this->query->eq(TaskModel::TABLE.'.is_active', $this->value === 'open' ? TaskModel::STATUS_OPEN : TaskModel::STATUS_CLOSED); } else { $this->query->eq(TaskModel::TABLE.'.is_active', $this->value); } return $this; } }