abstract class BaseClient

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected string $iosAppKey
protected string $androidChannel
protected string $androidAppKey
protected string $accessKey

Aliyun Access Key

protected string $accessSecret

Aliyun Access Secret

protected string $androidActivity
protected string $clientName
protected mixed $result 执行结果

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
__construct(Config $config)

SendBase constructor.

setAppConfig($ak, $sk, $android_app_id, $android_channel = '', $ios_key = '')

No description

getResult()

No description

Push
initClient()

初始化

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

at line 69
__construct(Config $config)

SendBase constructor.

Parameters

Config $config

at line 81
BaseClient setAppConfig($ak, $sk, $android_app_id, $android_channel = '', $ios_key = '')

No description

Parameters

$ak
$sk
$android_app_id
$android_channel
$ios_key

Return Value

BaseClient

at line 91
getResult()

No description

at line 99
protected Push initClient()

初始化

Return Value

Push