Skip to content

Street

Properties

name

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $name

number

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $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.

public __toString(): string

fromNative

Returns a new Street from native PHP string name and number.

public static fromNative(): \Qubus\ValueObjects\Geography\Street|\Qubus\ValueObjects\ValueObject
  • This method is static.

Throws:


equals

Tells whether two Street objects are equal.

public equals(\Qubus\ValueObjects\Geography\Street|\Qubus\ValueObjects\ValueObject $street): bool

Parameters:

Parameter Type Description
$street \Qubus\ValueObjects\Geography\Street|\Qubus\ValueObjects\ValueObject

getName

Returns street name.

public getName(): \Qubus\ValueObjects\StringLiteral\StringLiteral

getNumber

Returns street number.

public getNumber(): \Qubus\ValueObjects\StringLiteral\StringLiteral


Automatically generated on 2025-10-13