PHP Class Happyr\LinkedIn\Http\ResponseConverter

Datei anzeigen Open project: happyr/linkedin-api-client Class Usage Examples

Public Methods

Method Description
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

Method Details

convert() public static method

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
return Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string

convertToArray() public static method

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

convertToSimpleXml() public static method

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