diff --git a/extend/icloud/src/httpclient/Client.php b/extend/icloud/src/httpclient/Client.php new file mode 100644 index 0000000..3c8fd08 --- /dev/null +++ b/extend/icloud/src/httpclient/Client.php @@ -0,0 +1,64 @@ +request($this->method, $this->uri, $this->params); + } + + public function set($offset, $value) + { + $this->$offset = $value; + } + + /** + * 魔术方法 + * + * @time at 2019年01月26日 + * @param string $key + * @param $value + * @return void + */ + public function __set(string $key, $value) + { + $this->$key = $value; + } + + public function offsetSet($offset, $value) + { + $this->params[$offset] = $value; + } + + public function offsetGet($offset) + { + return $this->params[$offset]; + } + + public function offsetExists($offset) + { + return isset($this->params[$offset]); + } + + public function offsetUnset($offset) + { + unset($this->params[$offset]); + } +}