PHP Class LaravelFCM\Request\BaseRequest

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

Protected Properties

Property Type Description
$client GuzzleHttp\Client
$config array

Public Methods

Method Description
__construct ( ) BaseRequest constructor.
build ( ) : array Return the request in array form

Protected Methods

Method Description
buildBody ( ) : mixed Build the body of the request
buildRequestHeader ( ) : array Build the header for the request

Method Details

__construct() public method

BaseRequest constructor.
public __construct ( )

build() public method

Return the request in array form
public build ( ) : array
return array

buildBody() abstract protected method

Build the body of the request
abstract protected buildBody ( ) : mixed
return mixed

buildRequestHeader() protected method

Build the header for the request
protected buildRequestHeader ( ) : array
return array

Property Details

$client protected property

protected Client,GuzzleHttp $client
return GuzzleHttp\Client

$config protected property

protected array $config
return array