1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer.php
2021-07-06 11:36:23 -03:00

29 lines
635 B
PHP

<?php
namespace PayPalHttp;
/**
* Interface Serializer
* @package PayPalHttp
*
* Used to implement different serializers for different content types
*/
interface Serializer
{
/**
* @return string Regex that matches the content type it supports.
*/
public function contentType();
/**
* @param HttpRequest $request
* @return string representation of your data after being serialized.
*/
public function encode(HttpRequest $request);
/**
* @param $body
* @return mixed object/string representing the de-serialized response body.
*/
public function decode($body);
}