Hostname
- Full name:
\Qubus\ValueObjects\Web\Hostname
- Parent class:
\Qubus\ValueObjects\Web\Domain
Methods
__construct
Returns a Hostname
Parameters:
Parameter | Type | Description |
---|---|---|
$value | string |
Throws:
Inherited methods
fromNative
Returns a String object given a PHP native string as parameter.
public static fromNative(): \Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject
- This method is static.
Throws:
__construct
Returns a String object given a PHP native string as parameter.
Parameters:
Parameter | Type | Description |
---|---|---|
$value | string |
Throws:
toNative
Returns the value of the string.
equals
Tells whether two strings are equal by comparing their values
public equals(\Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject $stringLiteral): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$stringLiteral | \Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject |
isEmpty
Tells whether the String is empty
__toString
Returns the string value itself
specifyType
Returns a Hostname or a IPAddress object depending on passed value
public static specifyType(mixed $domain): \Qubus\ValueObjects\Web\Hostname|\Qubus\ValueObjects\Web\IPAddress
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$domain | mixed |
Throws:
isValid
Parameters:
Parameter | Type | Description |
---|---|---|
$domain | string |
Automatically generated on 2025-10-13