Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public static function __callStatic($product, $arguments) |
||
46 | { |
||
47 | $product = \ucfirst($product); |
||
48 | |||
49 | $product_class = 'AlibabaCloud' . '\\' . $product . '\\' . $product; |
||
50 | |||
51 | if (\class_exists($product_class)) { |
||
52 | return new $product_class; |
||
53 | } |
||
54 | |||
55 | throw new ClientException( |
||
56 | "May not yet support product $product quick access, " |
||
57 | . 'you can use [Alibaba Cloud Client for PHP] to send any custom ' |
||
58 | . 'requests: https://github.com/aliyun/openapi-sdk-php-client/blob/master/docs/en-US/3-Request.md', |
||
59 | SDK::SERVICE_NOT_FOUND |
||
60 | ); |
||
63 |