PHP Class Minishlink\WebPush\Notification

Show file Open project: minishlink/web-push

Public Methods

Method Description
__construct ( $endpoint, $payload, $userPublicKey, $userAuthToken, $options, $auth )
getAuth ( array $defaultAuth ) : array
getEndpoint ( ) : string
getOptions ( array $defaultOptions = [] ) : array
getPayload ( ) : null | string
getUserAuthToken ( ) : null | string
getUserPublicKey ( ) : null | string

Method Details

__construct() public method

public __construct ( $endpoint, $payload, $userPublicKey, $userAuthToken, $options, $auth )

getAuth() public method

public getAuth ( array $defaultAuth ) : array
$defaultAuth array
return array

getEndpoint() public method

public getEndpoint ( ) : string
return string

getOptions() public method

public getOptions ( array $defaultOptions = [] ) : array
$defaultOptions array
return array

getPayload() public method

public getPayload ( ) : null | string
return null | string

getUserAuthToken() public method

public getUserAuthToken ( ) : null | string
return null | string

getUserPublicKey() public method

public getUserPublicKey ( ) : null | string
return null | string