PHP Class Usps\ZipCodeLookup

Since: 1.0
Author: Vincent Gabriel
Inheritance: extends USPSBase
Afficher le fichier Open project: vinceg/usps-php-api

Protected Properties

Свойство Type Description
$addresses - list of all addresses added so far
$apiVersion - the api version used for this type of call

Méthodes publiques

Méthode 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 méthode

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

getPostFields() public méthode

returns array of all addresses added so far.
public getPostFields ( ) : array
Résultat array

lookup() public méthode

Perform the API call.
public lookup ( ) : string
Résultat 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