PHP Class WoohooLabs\Yin\JsonApi\Serializer\DefaultSerializer

Inheritance: implements WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface
Datei anzeigen Open project: woohoolabs/yin

Public Methods

Method Description
getBodyAsString ( Psr\Http\Message\ResponseInterface $response ) : string
serialize ( Psr\Http\Message\ResponseInterface $response, integer $responseCode, array $content ) : Psr\Http\Message\ResponseInterface

Method Details

getBodyAsString() public method

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

serialize() public method

public serialize ( Psr\Http\Message\ResponseInterface $response, integer $responseCode, array $content ) : Psr\Http\Message\ResponseInterface
$response Psr\Http\Message\ResponseInterface
$responseCode integer
$content array
return Psr\Http\Message\ResponseInterface