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
Properties
string read-only | $scheme | ||
string read-only | $user | ||
string read-only | $password | ||
string read-only | $host | ||
int read-only | $port | ||
string read-only | $path | ||
string read-only | $query | ||
string read-only | $fragment | ||
string read-only | $absoluteUrl | ||
string read-only | $authority | ||
string read-only | $hostUrl | ||
array read-only | $queryParameters |
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
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
No description
Details
at line 67
__construct(Url $url)
No description
at line 75
UrlImmutable
withScheme(string $scheme)
No description
at line 84
string
getScheme()
No description
at line 90
UrlImmutable
withUser(string $user)
No description
at line 99
string
getUser()
No description
at line 105
UrlImmutable
withPassword(string $password)
No description
at line 114
string
getPassword()
No description
at line 120
UrlImmutable
withoutUserInfo()
No description
at line 129
UrlImmutable
withHost(string $host)
No description
at line 138
string
getHost()
No description
at line 144
string
getDomain(int $level = 2)
No description
at line 156
UrlImmutable
withPort(int $port)
No description
at line 165
int|null
getPort()
No description
at line 171
UrlImmutable
withPath(string $path)
No description
at line 180
string
getPath()
No description
at line 186
UrlImmutable
withQuery(string|array $query)
No description
at line 195
string
getQuery()
No description
at line 201
UrlImmutable
withQueryParameter(string $name, mixed $value)
No description
at line 209
array
getQueryParameters()
No description
at line 215
array|string|null
getQueryParameter(string $name)
No description
at line 221
UrlImmutable
withFragment(string $fragment)
No description
at line 230
string
getFragment()
No description
at line 239
string
getAbsoluteUrl()
Returns the entire URI including query string and fragment.
at line 250
string
getAuthority()
Returns the [user[:pass]@]host[:port] part of URI.
at line 259
string
getHostUrl()
Returns the scheme and authority part of URI.
at line 266
string
__toString()
No description
at line 272
bool
isEqual(Url|self $url)
No description
at line 278
string
jsonSerialize()
No description
at line 285
final array
export()
internal |
No description
at line 291
protected void
build()
No description
Traits
Strict class for better experience.