PHP 클래스 LaravelFCM\Mocks\MockDownstreamResponse

상속: implements LaravelFCM\Response\DownstreamResponseContract
파일 보기 프로젝트 열기: brozot/laravel-fcm

보호된 프로퍼티들

프로퍼티 타입 설명
$hasMissingToken boolean
$messageId
$numberTokensSuccess integer
$tokensToDelete array
$tokensToModify array
$tokensToRetry array
$tokensWithError array

공개 메소드들

메소드 설명
__construct ( $numberSuccess ) DownstreamResponse constructor.
addTokenToDelete ( $token ) Add a token to delete
addTokenToModify ( $oldToken, $newToken ) Add a token to modify
addTokenToRetry ( $token ) Add a token to retry
addTokenWithError ( $token, $message ) Add a token to errors
hasMissingToken ( ) : boolean check if missing tokens was given to the request If true, remove all the empty token in your database
merge ( DownstreamResponse $response ) Not using it
numberFailure ( ) : integer Get the number of device which thrown an error
numberModification ( ) : integer Get the number of device that you need to modify their token
numberSuccess ( ) : integer Get the number of device reached with success + numberTokenToModify
setMissingToken ( $hasMissingToken ) change missing token state
tokensToDelete ( ) : array get token to delete remove all tokens returned by this method in your database
tokensToModify ( ) : array get token to modify key: oldToken value: new token find the old token in your database and replace it with the new one
tokensToRetry ( ) : array Get tokens that you should resend using exponential backoof
tokensWithError ( ) : array Get tokens that thrown an error key : token value : error In production, remove these tokens from you database

메소드 상세

__construct() 공개 메소드

DownstreamResponse constructor.
public __construct ( $numberSuccess )
$numberSuccess

addTokenToDelete() 공개 메소드

Add a token to delete
public addTokenToDelete ( $token )
$token

addTokenToModify() 공개 메소드

Add a token to modify
public addTokenToModify ( $oldToken, $newToken )
$oldToken
$newToken

addTokenToRetry() 공개 메소드

Add a token to retry
public addTokenToRetry ( $token )
$token

addTokenWithError() 공개 메소드

Add a token to errors
public addTokenWithError ( $token, $message )
$token
$message

hasMissingToken() 공개 메소드

check if missing tokens was given to the request If true, remove all the empty token in your database
public hasMissingToken ( ) : boolean
리턴 boolean

merge() 공개 메소드

Not using it
public merge ( DownstreamResponse $response )
$response LaravelFCM\Response\DownstreamResponse

numberFailure() 공개 메소드

Get the number of device which thrown an error
public numberFailure ( ) : integer
리턴 integer

numberModification() 공개 메소드

Get the number of device that you need to modify their token
public numberModification ( ) : integer
리턴 integer

numberSuccess() 공개 메소드

Get the number of device reached with success + numberTokenToModify
public numberSuccess ( ) : integer
리턴 integer

setMissingToken() 공개 메소드

change missing token state
public setMissingToken ( $hasMissingToken )
$hasMissingToken

tokensToDelete() 공개 메소드

get token to delete remove all tokens returned by this method in your database
public tokensToDelete ( ) : array
리턴 array

tokensToModify() 공개 메소드

get token to modify key: oldToken value: new token find the old token in your database and replace it with the new one
public tokensToModify ( ) : array
리턴 array

tokensToRetry() 공개 메소드

Get tokens that you should resend using exponential backoof
public tokensToRetry ( ) : array
리턴 array

tokensWithError() 공개 메소드

Get tokens that thrown an error key : token value : error In production, remove these tokens from you database
public tokensWithError ( ) : array
리턴 array

프로퍼티 상세

$hasMissingToken 보호되어 있는 프로퍼티

protected bool $hasMissingToken
리턴 boolean

$messageId 보호되어 있는 프로퍼티

protected $messageId

$numberTokensSuccess 보호되어 있는 프로퍼티

protected int $numberTokensSuccess
리턴 integer

$tokensToDelete 보호되어 있는 프로퍼티

protected array $tokensToDelete
리턴 array

$tokensToModify 보호되어 있는 프로퍼티

protected array $tokensToModify
리턴 array

$tokensToRetry 보호되어 있는 프로퍼티

protected array $tokensToRetry
리턴 array

$tokensWithError 보호되어 있는 프로퍼티

protected array $tokensWithError
리턴 array