Lines Matching defs:scheme
77 private ?string $scheme = null;
125 $this->scheme = $urlComponents["scheme"] ?? null;
286 if ($this->scheme === null) {
287 throw new ExceptionNotFound("The scheme was not found");
289 return $this->scheme;
295 * in a https scheme: Not the path has a leading `/` that makes the path absolute
296 * in a email scheme: the path is the email (without /) then
312 * @return bool - true if http, https scheme
369 * @return Url - add the scheme and the host based on the request if not present
485 throw new ExceptionNotEquals("The scheme are not equals ($actualScheme vs $expectedScheme)");
541 public function setScheme(string $scheme): Url
543 $this->scheme = $scheme;
725 $scheme = $this->getScheme();
727 $scheme = null;
731 switch ($scheme) {
736 $base = "$scheme://";
759 $base = "$scheme:";
788 * Rewrite may have set a default scheme
792 $scheme = $this->getScheme();
794 $scheme = null;
806 if ($scheme !== null) {
807 $base = "{$scheme}://";
816 if (!in_array($scheme, self::RELATIVE_URL_SCHEMES) && $scheme !== null) {
817 $base = "{$scheme}:";
947 * In case of messaging scheme (mailto, whatsapp, ...), this is not the case