PHP Class LaravelFCM\Response\BaseResponse

Show file Open project: brozot/laravel-fcm Class Usage Examples

Public Methods

Method Description
__construct ( Response $response ) BaseResponse constructor.

Protected Methods

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

Private Methods

Method Description
isJsonResponse ( Response $response ) Check if the response given by fcm is parsable

Method Details

__construct() public method

BaseResponse constructor.
public __construct ( Response $response )
$response GuzzleHttp\Psr7\Response

logResponse() abstract protected method

Log the response
abstract protected logResponse ( )

parseResponse() abstract protected method

parse the response
abstract protected parseResponse ( array $responseInJson )
$responseInJson array