PHP Class Pop\Shipping\Shipping

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$adapter mixed Shipping adapter

Méthodes publiques

Méthode Description
__construct ( AbstractAdapter $adapter ) : Shipping Constructor
adapter ( ) : AbstractAdapter Access the adapter
getRates ( ) : array Get service rates
getResponse ( ) : object Get response
getResponseCode ( ) : integer Get response code
getResponseMessage ( ) : string Get response message
isError ( ) : boolean Return whether the transaction is an error
isSuccess ( ) : boolean Return whether the transaction is success
send ( ) : void Send transaction data
setDimensions ( array $dimensions, string $unit = null ) : self Set dimensions
setWeight ( string $weight, string $unit = null ) : self Set dimensions
shipFrom ( array $shipFrom ) : self Set ship from
shipTo ( array $shipTo ) : self Set ship to

Method Details

__construct() public méthode

Instantiate the shipping object
public __construct ( AbstractAdapter $adapter ) : Shipping
$adapter Pop\Shipping\Adapter\AbstractAdapter
Résultat Shipping

adapter() public méthode

Access the adapter
public adapter ( ) : AbstractAdapter
Résultat Pop\Shipping\Adapter\AbstractAdapter

getRates() public méthode

Get service rates
public getRates ( ) : array
Résultat array

getResponse() public méthode

Get response
public getResponse ( ) : object
Résultat object

getResponseCode() public méthode

Get response code
public getResponseCode ( ) : integer
Résultat integer

getResponseMessage() public méthode

Get response message
public getResponseMessage ( ) : string
Résultat string

isError() public méthode

Return whether the transaction is an error
public isError ( ) : boolean
Résultat boolean

isSuccess() public méthode

Return whether the transaction is success
public isSuccess ( ) : boolean
Résultat boolean

send() public méthode

Send transaction data
public send ( ) : void
Résultat void

setDimensions() public méthode

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : self
$dimensions array
$unit string
Résultat self

setWeight() public méthode

Set dimensions
public setWeight ( string $weight, string $unit = null ) : self
$weight string
$unit string
Résultat self

shipFrom() public méthode

Set ship from
public shipFrom ( array $shipFrom ) : self
$shipFrom array
Résultat self

shipTo() public méthode

Set ship to
public shipTo ( array $shipTo ) : self
$shipTo array
Résultat self

Property Details

$adapter protected_oe property

Shipping adapter
protected mixed $adapter
Résultat mixed