| 1 | <?php |
||
| 12 | class Client |
||
| 13 | { |
||
| 14 | private $client; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ClientInterface $client |
||
| 18 | */ |
||
| 19 | public function __construct(ClientInterface $client = null) |
||
| 23 | |||
| 24 | 6 | /** |
|
| 25 | 6 | * @param string $url |
|
| 26 | 6 | * @param SimpleXMLElement $body |
|
| 27 | * |
||
| 28 | * @return SimpleXMLElement |
||
| 29 | */ |
||
| 30 | public function post($url, SimpleXMLElement $body) |
||
| 48 | 1 | ||
| 49 | /** |
||
| 50 | 1 | * @param string $url |
|
| 51 | 1 | * |
|
| 52 | * @return SimpleXMLElement |
||
| 53 | 1 | */ |
|
| 54 | 1 | public function get($url) |
|
| 63 | } |
||
| 64 |