first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace Eservice;
class Response extends Configurable
{
protected $_info;
protected $_request = [];
public function __construct($response, $info = [])
{
$this->_data = $response;
$this->_info = new ResponseInfo($info);
}
public function get_info($name = null)
{
if (!is_null($name)) {
if (isset($this->info->{$name})) {
return $this->info->{$name};
}
return null;
}
return $this->info;
}
public function __debugInfo()
{
$data = [];
if ((is_array($this->_request)) && (count($this->_request) > 0)) {
$data["request"] = $this->_request;
}
$data["response"] = $this->_data;
$data["additionalInfo"] = $this->_info;
return $data;
}
}