Street
- Full name:
\Qubus\ValueObjects\Geography\Street
- This class implements:
\Qubus\ValueObjects\ValueObject
Properties
name
number
Methods
__construct
Returns a new Street object.
public __construct(\Qubus\ValueObjects\StringLiteral\StringLiteral $name, \Qubus\ValueObjects\StringLiteral\StringLiteral $number): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$number | \Qubus\ValueObjects\StringLiteral\StringLiteral |
__toString
Returns a string representation of the StringLiteral in the format defined in the constructor.
fromNative
Returns a new Street from native PHP string name and number.
- This method is static.
Throws:
equals
Tells whether two Street objects are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
$street | \Qubus\ValueObjects\Geography\Street|\Qubus\ValueObjects\ValueObject |
getName
Returns street name.
getNumber
Returns street number.
Automatically generated on 2025-10-13