1 | <?php namespace Comodojo\RpcClient\Components; |
||
23 | trait Protocol { |
||
24 | |||
25 | /** |
||
26 | * Supported RPC protocols |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $supported_protocols = array("XML", "JSON"); |
||
31 | |||
32 | /** |
||
33 | * RPC protocol |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | private $protocol = 'XML'; |
||
38 | |||
39 | /** |
||
40 | * Set RPC protocol |
||
41 | * |
||
42 | * @param string $protocol RPC protocol |
||
43 | * |
||
44 | * @return \Comodojo\RpcClient\RpcClient |
||
45 | * |
||
46 | * @throws \Exception |
||
47 | */ |
||
48 | public function setProtocol($protocol) { |
||
59 | |||
60 | final public function getProtocol() { |
||
65 | |||
66 | } |
||
67 |