PHP 클래스 Happyr\LinkedIn\Http\ResponseConverter

파일 보기 프로젝트 열기: happyr/linkedin-api-client 1 사용 예제들

공개 메소드들

메소드 설명
convert ( Psr\Http\Message\ResponseInterface $response, string $requestFormat, string $dataType ) : Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string Convert a PSR-7 response to a data type you want to work with.
convertToArray ( Psr\Http\Message\ResponseInterface $response ) : string
convertToSimpleXml ( Psr\Http\Message\ResponseInterface $response ) : SimpleXMLElement

메소드 상세

convert() 공개 정적인 메소드

Convert a PSR-7 response to a data type you want to work with.
public static convert ( Psr\Http\Message\ResponseInterface $response, string $requestFormat, string $dataType ) : Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string
$response Psr\Http\Message\ResponseInterface
$requestFormat string
$dataType string
리턴 Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string

convertToArray() 공개 정적인 메소드

public static convertToArray ( Psr\Http\Message\ResponseInterface $response ) : string
$response Psr\Http\Message\ResponseInterface
리턴 string

convertToSimpleXml() 공개 정적인 메소드

public static convertToSimpleXml ( Psr\Http\Message\ResponseInterface $response ) : SimpleXMLElement
$response Psr\Http\Message\ResponseInterface
리턴 SimpleXMLElement