DirectHelpManualParsedUrl
in package
Class representing a parsed URL
Table of Contents
- $basename : string
- URL base name
- $parameters : array<string|int, mixed>
- Parameters
- basename() : string
- Return the base name
- createUsing() : DirectHelpManualParsedUrl
- Return a new instance using the provided parameter as typed string
- createUsingRawString() : DirectHelpManualParsedUrl
- Return a new instance using the provided parameter as raw string
- hasSameParametersAs() : bool
- Return whether the comparison URL has the same parameters as this object
- isSameFileAs() : bool
- Return whether the comparison URL has the same file name (base name) as this object
- parameterIntersectionWith() : bool
- Return the amount of parameter intersection with the comparison URL
- parameters() : array<string|int, mixed>
- Return the parameters
- __construct() : mixed
- Create instance
Properties
$basename
URL base name
protected
string
$basename
$parameters
Parameters
protected
array<string|int, mixed>
$parameters
Methods
basename()
Return the base name
public
basename() : string
Return values
string —createUsing()
Return a new instance using the provided parameter as typed string
public
static createUsing(NonEmptyStringType $url) : DirectHelpManualParsedUrl
Parameters
- $url : NonEmptyStringType
-
URL
Return values
DirectHelpManualParsedUrl —createUsingRawString()
Return a new instance using the provided parameter as raw string
public
static createUsingRawString(string $url) : DirectHelpManualParsedUrl
Parameters
- $url : string
-
URL
Return values
DirectHelpManualParsedUrl —hasSameParametersAs()
Return whether the comparison URL has the same parameters as this object
public
hasSameParametersAs(DirectHelpManualParsedUrl $foreign) : bool
Parameters
- $foreign : DirectHelpManualParsedUrl
-
Comparison URL
Return values
bool —isSameFileAs()
Return whether the comparison URL has the same file name (base name) as this object
public
isSameFileAs(DirectHelpManualParsedUrl $foreign) : bool
Parameters
- $foreign : DirectHelpManualParsedUrl
-
Comparison URL
Return values
bool —parameterIntersectionWith()
Return the amount of parameter intersection with the comparison URL
public
parameterIntersectionWith(DirectHelpManualParsedUrl $foreign) : bool
Parameters
- $foreign : DirectHelpManualParsedUrl
-
Comparison URL
Return values
bool —parameters()
Return the parameters
public
parameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —__construct()
Create instance
private
__construct(string $url) : mixed
Parameters
- $url : string
-
URL