PHP Интерфейс KamranAhmed\Smasher\Contracts\ResponseContract

Показать файл Открыть проект

Открытые методы

Метод Описание
decode ( string $response ) : array Decodes the passed string and creates array from it
encode ( array $data ) : string Formats the passed data for example a JsonResponse will encode to json, XMLResponse will encode to xml etc

Описание методов

decode() публичный Метод

Decodes the passed string and creates array from it
public decode ( string $response ) : array
$response string The existing response which is to be decoded to array
Результат array

encode() публичный Метод

Formats the passed data for example a JsonResponse will encode to json, XMLResponse will encode to xml etc
public encode ( array $data ) : string
$data array The data which is to be encoded
Результат string