protected function setState($state)
    {
        $state = intval($state);

        if ($state < 0 || $state > 3) {
            return false;
        }

        $this->state = $state;
        return true;
    }