for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @version 1.0
* @author Vermeulen Maxime (bulton-fr) <[email protected]>
* @package bultonFr
*/
namespace bultonFr\CallCurl\Parser;
use \Exception;
class Json implements \bultonFr\CallCurl\Parser
{
* {@inheritdoc}
public function preFormatDatas(&$datas)
$datas = json_encode($datas);
}
public function formatCallReturn(&$callReturn)
$callReturn = json_decode($callReturn);
if($callReturn === null) {
throw new Exception(json_last_error_msg());