public function setAuthRequired($isRequired)
    {
        if ($isRequired) {
            $this->setFlags   = $this->setFlags | static::FLAG_AUTH_REQUIRED;
            $this->clearFlags = $this->clearFlags & ~(static::FLAG_AUTH_REQUIRED);
        }
        else {
            $this->setFlags   = $this->setFlags & ~(static::FLAG_AUTH_REQUIRED);
            $this->clearFlags = $this->clearFlags | static::FLAG_AUTH_REQUIRED;
        }

        return $this;
    }