Lines Matching refs:null
76 private ?string $path = null;
77 private ?string $scheme = null;
78 private ?string $host = null;
79 private ?string $fragment = null;
84 private ?int $port = null;
96 public function __construct(string $url = null)
101 if ($this->url !== null) {
120 $queryString = $urlComponents['query'] ?? null;
121 if ($queryString !== null) {
125 $this->scheme = $urlComponents["scheme"] ?? null;
126 $this->host = $urlComponents["host"] ?? null;
127 $port = $urlComponents["port"] ?? null;
129 if ($port !== null) {
135 $pathUrlComponent = $urlComponents["path"] ?? null;
136 if ($pathUrlComponent !== null) {
139 $this->fragment = $urlComponents["fragment"] ?? null;
252 if ($value === null) {
286 if ($this->scheme === null) {
330 public function addQueryParameter(string $key, ?string $value = null): Url
338 if ($actualValue === null || is_array($actualValue)) {
387 $https = $_SERVER['HTTPS'] ?? null;
418 if ($this->host === null) {
429 if ($this->path === null || $this->path === '/') {
440 if ($this->fragment === null) {
510 if ($expectedValue === null) {
581 * * it output 'key=' instead of `key` when the value is null
583 $queryString = null;
585 if ($queryString !== null) {
595 if ($value === null) {
727 $scheme = null;
794 $scheme = null;
799 $host = null;
805 if ($host !== null) {
806 if ($scheme !== null) {
816 if (!in_array($scheme, self::RELATIVE_URL_SCHEMES) && $scheme !== null) {
882 if ($this->port === null) {
988 if ($this->path !== null) {