1 | <?php |
||
19 | class Client |
||
20 | { |
||
21 | const USER_AGENT = 'clarify-php/2.0.0'; |
||
22 | |||
23 | protected $baseURI = 'https://api.clarify.io/v1/'; |
||
24 | protected $apiKey = ''; |
||
25 | protected $client = null; |
||
26 | protected $request = null; |
||
27 | public $response = null; |
||
28 | public $statusCode = null; |
||
29 | public $detail = null; |
||
30 | |||
31 | /** |
||
32 | * @param $key |
||
33 | * @param null $httpClient |
||
34 | */ |
||
35 | public function __construct($key, $httpClient = null) |
||
42 | |||
43 | /** |
||
44 | * @param $uri |
||
45 | * @param array $options |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function post($uri, array $options = array()) |
||
55 | |||
56 | /** |
||
57 | * @param $uri |
||
58 | * @param array $options |
||
59 | * @return bool |
||
60 | * @throws Exceptions\InvalidIntegerArgumentException |
||
61 | */ |
||
62 | public function put($uri, array $options) |
||
75 | |||
76 | /** |
||
77 | * @param $uri |
||
78 | * @param array $parameters |
||
79 | * @return array|bool|float|int|string |
||
80 | */ |
||
81 | public function get($uri, array $parameters = array()) |
||
91 | |||
92 | /** |
||
93 | * This deletes a resource using a full URI. |
||
94 | * |
||
95 | * @param $uri |
||
96 | * @return bool |
||
97 | */ |
||
98 | public function delete($uri) |
||
102 | |||
103 | /** |
||
104 | * @param $method |
||
105 | * @param $uri |
||
106 | * @param array $options |
||
107 | * @return mixed |
||
108 | */ |
||
109 | protected function process($method, $uri, $options = array()) |
||
119 | |||
120 | protected function isSuccessful() |
||
130 | } |
||
131 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.