public function getProtocol() { if ($this->protocol === false) { if ($this->initialized) { $this->parseURI(); } else { $this->protocol = Util::keyIsDefined($_SERVER, 'SERVER_PROTOCOL'); } } return $this->protocol; }