PHP Interface Sonata\Component\Customer\AddressInterface

Show file Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
getAddress1 ( ) : string
getAddress2 ( ) : string
getAddress3 ( ) : string
getCity ( ) : string
getCountryCode ( ) : string
getCurrent ( ) : boolean
getCustomer ( ) : Sonata\Component\Customer\CustomerInterface Gets address' customer.
getFirstname ( ) : string
getFullAddressHtml ( ) : string Returns the HTML string representation of the address.
getId ( )
getLastname ( ) : string
getName ( ) : string
getPhone ( ) : string
getPostcode ( ) : string
getType ( ) : integer
setCurrent ( boolean $current ) Sets if this address is the current.
setCustomer ( Sonata\Component\Customer\CustomerInterface $customer ) Sets address' customer.

Method Details

getAddress1() public method

public getAddress1 ( ) : string
return string return the address (line 1)

getAddress2() public method

public getAddress2 ( ) : string
return string return the address (line 2)

getAddress3() public method

public getAddress3 ( ) : string
return string return the address (line 3)

getCity() public method

public getCity ( ) : string
return string return the city

getCountryCode() public method

public getCountryCode ( ) : string
return string return the ISO country code

getCurrent() public method

public getCurrent ( ) : boolean
return boolean Is it the current address?

getCustomer() public method

Gets address' customer.
public getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
return Sonata\Component\Customer\CustomerInterface

getFirstname() public method

public getFirstname ( ) : string
return string return the address firstname

getFullAddressHtml() public method

Returns the HTML string representation of the address.
public getFullAddressHtml ( ) : string
return string

getId() public method

public getId ( )

getLastname() public method

public getLastname ( ) : string
return string return the address lastname

getName() public method

public getName ( ) : string
return string return the address name

getPhone() public method

public getPhone ( ) : string
return string return the phone number linked to the address

getPostcode() public method

public getPostcode ( ) : string
return string return the postcode

getType() public method

public getType ( ) : integer
return integer Address' type

setCurrent() public method

Sets if this address is the current.
public setCurrent ( boolean $current )
$current boolean

setCustomer() public method

Sets address' customer.
public setCustomer ( Sonata\Component\Customer\CustomerInterface $customer )
$customer Sonata\Component\Customer\CustomerInterface