PHP 클래스 Pop\Shipping\Shipping

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter mixed Shipping adapter

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Instantiate the shipping object
public __construct ( AbstractAdapter $adapter ) : Shipping
$adapter Pop\Shipping\Adapter\AbstractAdapter
리턴 Shipping

adapter() 공개 메소드

Access the adapter
public adapter ( ) : AbstractAdapter
리턴 Pop\Shipping\Adapter\AbstractAdapter

getRates() 공개 메소드

Get service rates
public getRates ( ) : array
리턴 array

getResponse() 공개 메소드

Get response
public getResponse ( ) : object
리턴 object

getResponseCode() 공개 메소드

Get response code
public getResponseCode ( ) : integer
리턴 integer

getResponseMessage() 공개 메소드

Get response message
public getResponseMessage ( ) : string
리턴 string

isError() 공개 메소드

Return whether the transaction is an error
public isError ( ) : boolean
리턴 boolean

isSuccess() 공개 메소드

Return whether the transaction is success
public isSuccess ( ) : boolean
리턴 boolean

send() 공개 메소드

Send transaction data
public send ( ) : void
리턴 void

setDimensions() 공개 메소드

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : self
$dimensions array
$unit string
리턴 self

setWeight() 공개 메소드

Set dimensions
public setWeight ( string $weight, string $unit = null ) : self
$weight string
$unit string
리턴 self

shipFrom() 공개 메소드

Set ship from
public shipFrom ( array $shipFrom ) : self
$shipFrom array
리턴 self

shipTo() 공개 메소드

Set ship to
public shipTo ( array $shipTo ) : self
$shipTo array
리턴 self

프로퍼티 상세

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

Shipping adapter
protected mixed $adapter
리턴 mixed