Свойство | Тип | Описание | |
---|---|---|---|
$elements | Building, floor and unit | ||
$format | __toString() format Use properties corresponding placeholders: %name%, %number%, %elements% | ||
$name | ValueObjects\StringLiteral\StringLiteral | ||
$number | ValueObjects\StringLiteral\StringLiteral |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | string |
public static fromNative ( ) : |
||
Результат |
public getElements ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Результат | ValueObjects\StringLiteral\StringLiteral |
public getName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Результат | ValueObjects\StringLiteral\StringLiteral |
public getNumber ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Результат | ValueObjects\StringLiteral\StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $street ) : boolean | ||
$street | ValueObjects\ValueObjectInterface | |
Результат | boolean |
protected $format |
protected StringLiteral,ValueObjects\StringLiteral $name | ||
Результат | ValueObjects\StringLiteral\StringLiteral |