PHP 클래스 Pop\Shipping\Adapter\Fedex

저자: Nick Sagona, III ([email protected])
상속: extends AbstractAdapter
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$client SoapClient SOAP Client
$dimensions array Package dimensions
$request array Request array
$services array Services
$shipFrom array Ship from fields
$shipTo array Ship to fields
$weight array Package weight
$wsdl string FedEx WSDL File

공개 메소드들

메소드 설명
__construct ( string $key, string $password, string $account, string $meter, string $wsdl = null ) : Fedex Constructor
getServices ( ) : array Static method to get the services
isError ( ) : boolean Return whether the transaction is an error
isSuccess ( ) : boolean Return whether the transaction is a success
send ( ) : void Send transaction
setDimensions ( array $dimensions, string $unit = null ) : mixed Set dimensions
setWeight ( string $weight, string $unit = null ) : mixed Set dimensions
shipFrom ( array $shipFrom ) : mixed Set ship from
shipTo ( array $shipTo ) : mixed Set ship to

메소드 상세

__construct() 공개 메소드

Method to instantiate an FedEx shipping adapter object
public __construct ( string $key, string $password, string $account, string $meter, string $wsdl = null ) : Fedex
$key string
$password string
$account string
$meter string
$wsdl string
리턴 Fedex

getServices() 공개 정적인 메소드

Static method to get the services
public static getServices ( ) : array
리턴 array

isError() 공개 메소드

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

isSuccess() 공개 메소드

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

send() 공개 메소드

Send transaction
public send ( ) : void
리턴 void

setDimensions() 공개 메소드

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

setWeight() 공개 메소드

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

shipFrom() 공개 메소드

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

shipTo() 공개 메소드

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

프로퍼티 상세

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

SOAP Client
protected SoapClient $client
리턴 SoapClient

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

Package dimensions
protected array $dimensions
리턴 array

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

Request array
protected array $request
리턴 array

$services 보호되어 있는 정적으로 프로퍼티

Services
protected static array $services
리턴 array

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

Ship from fields
protected array $shipFrom
리턴 array

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

Ship to fields
protected array $shipTo
리턴 array

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

Package weight
protected array $weight
리턴 array

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

FedEx WSDL File
protected string $wsdl
리턴 string