f0d6cde5
xu
vendor
|
1
2
3
4
|
<?php
namespace AlibabaCloud\Client;
|
f0d6cde5
xu
vendor
|
5
6
|
use AlibabaCloud\Client\Traits\LogTrait;
use AlibabaCloud\Client\Traits\MockTrait;
|
0c34aba8
xu
更新阿里云短信接口
|
7
8
|
use AlibabaCloud\Client\Traits\ClientTrait;
use AlibabaCloud\Client\Traits\HistoryTrait;
|
f0d6cde5
xu
vendor
|
9
|
use AlibabaCloud\Client\Traits\RequestTrait;
|
0c34aba8
xu
更新阿里云短信接口
|
10
11
12
|
use AlibabaCloud\Client\Traits\EndpointTrait;
use AlibabaCloud\Client\Traits\DefaultRegionTrait;
use AlibabaCloud\Client\Exception\ClientException;
|
f0d6cde5
xu
vendor
|
13
14
15
16
17
|
/**
* Class AlibabaCloud
*
* @package AlibabaCloud\Client
|
0c34aba8
xu
更新阿里云短信接口
|
18
|
* @mixin \AlibabaCloud\IdeHelper
|
f0d6cde5
xu
vendor
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
*/
class AlibabaCloud
{
use ClientTrait;
use DefaultRegionTrait;
use EndpointTrait;
use RequestTrait;
use MockTrait;
use HistoryTrait;
use LogTrait;
/**
* Version of the Client
*/
|
0c34aba8
xu
更新阿里云短信接口
|
33
|
const VERSION = '1.5.20';
|
f0d6cde5
xu
vendor
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/**
* This static method can directly call the specific service.
*
* @param string $product
* @param array $arguments
*
* @codeCoverageIgnore
* @return object
* @throws ClientException
*/
public static function __callStatic($product, $arguments)
{
$product = \ucfirst($product);
|
0c34aba8
xu
更新阿里云短信接口
|
49
|
$product_class = 'AlibabaCloud' . '\\' . $product . '\\' . $product;
|
f0d6cde5
xu
vendor
|
50
|
|
0c34aba8
xu
更新阿里云短信接口
|
51
52
|
if (\class_exists($product_class)) {
return new $product_class;
|
f0d6cde5
xu
vendor
|
53
54
55
56
57
|
}
throw new ClientException(
"May not yet support product $product quick access, "
. 'you can use [Alibaba Cloud Client for PHP] to send any custom '
|
0c34aba8
xu
更新阿里云短信接口
|
58
|
. 'requests: https://github.com/aliyun/openapi-sdk-php-client/blob/master/docs/en-US/3-Request.md',
|
f0d6cde5
xu
vendor
|
59
60
61
62
|
SDK::SERVICE_NOT_FOUND
);
}
}
|