protected function setOptional()
    {
        if (substr($this->input, -1) === '?') {
            $this->modeArray[] = 'OPTIONAL';

            $this->input = str_replace('?', '', $this->input);
        }

        return $this;
    }