UrlImmutable
class UrlImmutable implements JsonSerializable
Immutable representation of a URL.
scheme user password host port path query fragment | | | | | | | | /--\ /--\ /------\ /-------\ /--\/------------\ /--------\ /------\ http://john:x0y17575@nette.org:8042/en/manual.php?name=param#fragment <-- absoluteUrl \______\__________________________/ | | hostUrl authority
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Returns the entire URI including query string and fragment.
Returns the [user[:pass]@]host[:port] part of URI.
Returns the scheme and authority part of URI.
No description
No description
No description
No description
Details
at line 77
__construct(string|UrlImmutable|Url $url)
at line 90
UrlImmutable
withScheme(string $scheme)
at line 99
string
getScheme()
at line 106
UrlImmutable
withUser(string $user)
at line 115
string
getUser()
at line 122
UrlImmutable
withPassword(string $password)
at line 131
string
getPassword()
at line 138
UrlImmutable
withoutUserInfo()
at line 148
UrlImmutable
withHost(string $host)
at line 157
string
getHost()
at line 163
string
getDomain(int $level = 2)
at line 176
UrlImmutable
withPort(int $port)
at line 185
int|null
getPort()
at line 192
UrlImmutable
withPath(string $path)
at line 201
string
getPath()
at line 211
UrlImmutable
withQuery(string|array $query)
at line 220
string
getQuery()
at line 230
UrlImmutable
withQueryParameter(string $name, $value)
at line 238
array
getQueryParameters()
at line 245
array|string|null
getQueryParameter(string $name)
at line 252
UrlImmutable
withFragment(string $fragment)
at line 261
string
getFragment()
at line 270
string
getAbsoluteUrl()
Returns the entire URI including query string and fragment.
at line 281
string
getAuthority()
Returns the [user[:pass]@]host[:port] part of URI.
at line 290
string
getHostUrl()
Returns the scheme and authority part of URI.