PHP Interface WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface

Exibir arquivo Open project: woohoolabs/yin Interface Usage Examples

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