PHP 클래스 BitbarPlugins\Travel\DistanceMatrixResponse

파일 보기 프로젝트 열기: matryer/bitbar-plugins

공개 메소드들

메소드 설명
fromApiResponse ( $response ) : DistanceMatrixResponse Creates an instance of DistanceMatrixResponse from raw API response in json
getDestinationAddresses ( ) : string
getOriginAddresses ( ) : string
getRows ( ) : DistanceMatrixResponseElement
getStatus ( ) : string

비공개 메소드들

메소드 설명
getDestinationAddressesFromResponse ( array $distanceMatrix )
getErrorFromResponse ( array $distanceMatrix )
getOriginAddressesFromResponse ( array $distanceMatrix )
getRowsFromResponse ( array $distanceMatrix )
getStatusFromResponse ( array $distanceMatrix )

메소드 상세

fromApiResponse() 공개 정적인 메소드

Creates an instance of DistanceMatrixResponse from raw API response in json
public static fromApiResponse ( $response ) : DistanceMatrixResponse
$response
리턴 DistanceMatrixResponse

getDestinationAddresses() 공개 메소드

public getDestinationAddresses ( ) : string
리턴 string

getOriginAddresses() 공개 메소드

public getOriginAddresses ( ) : string
리턴 string

getRows() 공개 메소드

public getRows ( ) : DistanceMatrixResponseElement
리턴 DistanceMatrixResponseElement

getStatus() 공개 메소드

public getStatus ( ) : string
리턴 string