PHP Class Usps\ZipCodeLookup

Since: 1.0
Author: Vincent Gabriel
Inheritance: extends USPSBase
ファイルを表示 Open project: vinceg/usps-php-api

Protected Properties

Property Type Description
$addresses - list of all addresses added so far
$apiVersion - the api version used for this type of call

Public Methods

Method Description
addAddress ( Address $data, string $id = null ) Add Address to the stack.
getPostFields ( ) : array returns array of all addresses added so far.
lookup ( ) : string Perform the API call.

Method Details

addAddress() public method

Add Address to the stack.
public addAddress ( Address $data, string $id = null )
$data Address
$id string the address unique id

getPostFields() public method

returns array of all addresses added so far.
public getPostFields ( ) : array
return array

lookup() public method

Perform the API call.
public lookup ( ) : string
return string

Property Details

$addresses protected_oe property

- list of all addresses added so far
protected $addresses

$apiVersion protected_oe property

- the api version used for this type of call
protected $apiVersion