PHP 클래스 ValueObjects\Geography\Address

상속: implements ValueObjects\ValueObjectInterface
파일 보기 프로젝트 열기: nicolopignatelli/valueobjects 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$city ValueObjects\StringLiteral\StringLiteral City/Town/Village
$country Country
$district ValueObjects\StringLiteral\StringLiteral District/City area
$name ValueObjects\StringLiteral\StringLiteral Name of the addressee (natural person or company)
$postalCode ValueObjects\StringLiteral\StringLiteral Postal code/P.O. Box/ZIP code
$region ValueObjects\StringLiteral\StringLiteral Region/County/State
$street Street

공개 메소드들

메소드 설명
__construct ( ValueObjects\StringLiteral\StringLiteral $name, Street $street, ValueObjects\StringLiteral\StringLiteral $district, ValueObjects\StringLiteral\StringLiteral $city, ValueObjects\StringLiteral\StringLiteral $region, ValueObjects\StringLiteral\StringLiteral $postalCode, Country $country ) Returns a new Address object
__toString ( ) : string Returns a string representation of the Address in US standard format.
fromNative ( ) : self Returns a new Address from native PHP arguments
getCity ( ) : ValueObjects\StringLiteral\StringLiteral Returns city
getCountry ( ) : Country Returns country
getDistrict ( ) : ValueObjects\StringLiteral\StringLiteral Returns district
getName ( ) : ValueObjects\StringLiteral\StringLiteral Returns addressee name
getPostalCode ( ) : ValueObjects\StringLiteral\StringLiteral Returns postal code
getRegion ( ) : ValueObjects\StringLiteral\StringLiteral Returns region
getStreet ( ) : Street Returns street
sameValueAs ( ValueObjects\ValueObjectInterface $address ) : boolean Tells whether two Address are equal

메소드 상세

__construct() 공개 메소드

Returns a new Address object
public __construct ( ValueObjects\StringLiteral\StringLiteral $name, Street $street, ValueObjects\StringLiteral\StringLiteral $district, ValueObjects\StringLiteral\StringLiteral $city, ValueObjects\StringLiteral\StringLiteral $region, ValueObjects\StringLiteral\StringLiteral $postalCode, Country $country )
$name ValueObjects\StringLiteral\StringLiteral
$street Street
$district ValueObjects\StringLiteral\StringLiteral
$city ValueObjects\StringLiteral\StringLiteral
$region ValueObjects\StringLiteral\StringLiteral
$postalCode ValueObjects\StringLiteral\StringLiteral
$country Country

__toString() 공개 메소드

Returns a string representation of the Address in US standard format.
public __toString ( ) : string
리턴 string

fromNative() 공개 정적인 메소드

Returns a new Address from native PHP arguments
public static fromNative ( ) : self
리턴 self

getCity() 공개 메소드

Returns city
public getCity ( ) : ValueObjects\StringLiteral\StringLiteral
리턴 ValueObjects\StringLiteral\StringLiteral

getCountry() 공개 메소드

Returns country
public getCountry ( ) : Country
리턴 Country

getDistrict() 공개 메소드

Returns district
public getDistrict ( ) : ValueObjects\StringLiteral\StringLiteral
리턴 ValueObjects\StringLiteral\StringLiteral

getName() 공개 메소드

Returns addressee name
public getName ( ) : ValueObjects\StringLiteral\StringLiteral
리턴 ValueObjects\StringLiteral\StringLiteral

getPostalCode() 공개 메소드

Returns postal code
public getPostalCode ( ) : ValueObjects\StringLiteral\StringLiteral
리턴 ValueObjects\StringLiteral\StringLiteral

getRegion() 공개 메소드

Returns region
public getRegion ( ) : ValueObjects\StringLiteral\StringLiteral
리턴 ValueObjects\StringLiteral\StringLiteral

getStreet() 공개 메소드

Returns street
public getStreet ( ) : Street
리턴 Street

sameValueAs() 공개 메소드

Tells whether two Address are equal
public sameValueAs ( ValueObjects\ValueObjectInterface $address ) : boolean
$address ValueObjects\ValueObjectInterface
리턴 boolean

프로퍼티 상세

$city 보호되어 있는 프로퍼티

City/Town/Village
protected StringLiteral,ValueObjects\StringLiteral $city
리턴 ValueObjects\StringLiteral\StringLiteral

$country 보호되어 있는 프로퍼티

protected Country,ValueObjects\Geography $country
리턴 Country

$district 보호되어 있는 프로퍼티

District/City area
protected StringLiteral,ValueObjects\StringLiteral $district
리턴 ValueObjects\StringLiteral\StringLiteral

$name 보호되어 있는 프로퍼티

Name of the addressee (natural person or company)
protected StringLiteral,ValueObjects\StringLiteral $name
리턴 ValueObjects\StringLiteral\StringLiteral

$postalCode 보호되어 있는 프로퍼티

Postal code/P.O. Box/ZIP code
protected StringLiteral,ValueObjects\StringLiteral $postalCode
리턴 ValueObjects\StringLiteral\StringLiteral

$region 보호되어 있는 프로퍼티

Region/County/State
protected StringLiteral,ValueObjects\StringLiteral $region
리턴 ValueObjects\StringLiteral\StringLiteral

$street 보호되어 있는 프로퍼티

protected Street,ValueObjects\Geography $street
리턴 Street