forked from EverexIO/JSON-RPC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientLayer.php
More file actions
43 lines (38 loc) · 785 Bytes
/
ClientLayer.php
File metadata and controls
43 lines (38 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @package AmiLabs/JSONRPC/RPC
*/
namespace AmiLabs\JSONRPC\RPC;
/**
* Remote Procedure Call client layer abstract class.
*
* @package AmiLabs/JSONRPC/RPC
* @author deepeloper ({@see https://github.com/deepeloper})
*/
abstract class ClientLayer extends Layer
{
/**
* Remote service transport object
*
* @var mixed
*/
protected $transport;
public function __destruct()
{
$this->close();
}
/**
* Patches response.
*
* @param string &$response
* @return void
*/
abstract protected function patchResponse(&$response);
/**
* Validates response.
*
* @param string &$response
* @return void
*/
abstract protected function validateResponse($response);
}