for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace UAPAY\Orders\Show;
use UAPAY\Log as Log;
use UAPAY\Exception;
class Response extends \UAPAY\Response
{
/**
* @var string
*/
protected $id;
* @var array
protected $data;
* Handle decoded JSON
*
* @throws Exception\JSON
protected function json_handle()
parent::json_handle();
if (!isset($this->json['data']['id']))
throw new Exception\JSON('data does not contain the id field!');
}
$this->id = $this->json['data']['id'];
$this->data = $this->json['data'];
* Get session id
* @return string id session
public function id()
return $this->id;
* Get info about order
* @return array data
public function data()
return $this->data;