프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |