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