Свойство | Type | Description | |
---|---|---|---|
$elements | Building, floor and unit | ||
$format | __toString() format Use properties corresponding placeholders: %name%, %number%, %elements% | ||
$name | ValueObjects\StringLiteral\StringLiteral | ||
$number | ValueObjects\StringLiteral\StringLiteral |
Méthode | Description | |
---|---|---|
__construct ( ValueObjects\StringLiteral\StringLiteral $name, ValueObjects\StringLiteral\StringLiteral $number, ValueObjects\StringLiteral\StringLiteral $elements = null, ValueObjects\StringLiteral\StringLiteral $format = null ) | Returns a new Street object | |
__toString ( ) : string | 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. | |
getElements ( ) : ValueObjects\StringLiteral\StringLiteral | Returns street elements | |
getName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns street name | |
getNumber ( ) : ValueObjects\StringLiteral\StringLiteral | Returns street number | |
sameValueAs ( ValueObjects\ValueObjectInterface $street ) : boolean | Tells whether two Street objects are equal |
public __construct ( ValueObjects\StringLiteral\StringLiteral $name, ValueObjects\StringLiteral\StringLiteral $number, ValueObjects\StringLiteral\StringLiteral $elements = null, ValueObjects\StringLiteral\StringLiteral $format = null ) | ||
$name | ValueObjects\StringLiteral\StringLiteral | |
$number | ValueObjects\StringLiteral\StringLiteral | |
$elements | ValueObjects\StringLiteral\StringLiteral | |
$format | ValueObjects\StringLiteral\StringLiteral |
public __toString ( ) : string | ||
Résultat | string |
public static fromNative ( ) : |
||
Résultat |
public getElements ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Résultat | ValueObjects\StringLiteral\StringLiteral |
public getName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Résultat | ValueObjects\StringLiteral\StringLiteral |
public getNumber ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Résultat | ValueObjects\StringLiteral\StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $street ) : boolean | ||
$street | ValueObjects\ValueObjectInterface | |
Résultat | boolean |
protected $format |
protected StringLiteral,ValueObjects\StringLiteral $name | ||
Résultat | ValueObjects\StringLiteral\StringLiteral |