PHP Class LaravelFCM\Response\GroupResponse

Inheritance: extends BaseResponse, implements LaravelFCM\Response\GroupResponseContract
Datei anzeigen Open project: brozot/laravel-fcm Class Usage Examples

Protected Properties

Property Type Description
$numberTokensFailure integer
$numberTokensSuccess integer
$to string
$tokensFailed array

Public Methods

Method Description
__construct ( Response $response, $to ) GroupResponse constructor.
numberFailure ( ) : integer Get the number of device which thrown an error
numberSuccess ( ) : integer Get the number of device reached with success
tokensFailed ( ) : array Get all token in group that fcm cannot reach

Protected Methods

Method Description
logResponse ( ) Log the response
parseResponse ( $responseInJson ) parse the response

Private Methods

Method Description
parse ( $responseInJson ) : boolean
parseFailed ( $responseInJson )

Method Details

__construct() public method

GroupResponse constructor.
public __construct ( Response $response, $to )
$response GuzzleHttp\Psr7\Response
$to

logResponse() protected method

Log the response
protected logResponse ( )

numberFailure() public method

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

numberSuccess() public method

Get the number of device reached with success
public numberSuccess ( ) : integer
return integer

parseResponse() protected method

parse the response
protected parseResponse ( $responseInJson )
$responseInJson

tokensFailed() public method

Get all token in group that fcm cannot reach
public tokensFailed ( ) : array
return array

Property Details

$numberTokensFailure protected_oe property

protected int $numberTokensFailure
return integer

$numberTokensSuccess protected_oe property

protected int $numberTokensSuccess
return integer

$to protected_oe property

protected string $to
return string

$tokensFailed protected_oe property

protected array $tokensFailed
return array