PHP Class LaravelFCM\Request\Request

Inheritance: extends BaseRequest
Afficher le fichier Open project: brozot/laravel-fcm

Protected Properties

Свойство Type Description
$data LaravelFCM\Message\PayloadData
$notification LaravelFCM\Message\PayloadNotification
$options LaravelFCM\Message\Options
$to string | array
$topic LaravelFCM\Message\Topics | null

Méthodes publiques

Méthode Description
__construct ( $to, Options $options = null, PayloadNotification $notification = null, PayloadData $data = null, Topics $topic = null ) Request constructor.

Méthodes protégées

Méthode Description
buildBody ( ) : array Build the body for the request
getData ( ) : array | null get data transformed
getNotification ( ) : array | null get notification transformed
getOptions ( ) : array get Options transformed
getRegistrationIds ( ) : array | null get registrationIds transformed
getTo ( ) : array | null | string get to key transformed

Method Details

__construct() public méthode

Request constructor.
public __construct ( $to, Options $options = null, PayloadNotification $notification = null, PayloadData $data = null, Topics $topic = null )
$to
$options LaravelFCM\Message\Options
$notification LaravelFCM\Message\PayloadNotification
$data LaravelFCM\Message\PayloadData
$topic LaravelFCM\Message\Topics

buildBody() protected méthode

Build the body for the request
protected buildBody ( ) : array
Résultat array

getData() protected méthode

get data transformed
protected getData ( ) : array | null
Résultat array | null

getNotification() protected méthode

get notification transformed
protected getNotification ( ) : array | null
Résultat array | null

getOptions() protected méthode

get Options transformed
protected getOptions ( ) : array
Résultat array

getRegistrationIds() protected méthode

get registrationIds transformed
protected getRegistrationIds ( ) : array | null
Résultat array | null

getTo() protected méthode

get to key transformed
protected getTo ( ) : array | null | string
Résultat array | null | string

Property Details

$data protected_oe property

protected PayloadData,LaravelFCM\Message $data
Résultat LaravelFCM\Message\PayloadData

$notification protected_oe property

protected PayloadNotification,LaravelFCM\Message $notification
Résultat LaravelFCM\Message\PayloadNotification

$options protected_oe property

protected Options,LaravelFCM\Message $options
Résultat LaravelFCM\Message\Options

$to protected_oe property

protected string|array $to
Résultat string | array

$topic protected_oe property

protected Topics,LaravelFCM\Message|null $topic
Résultat LaravelFCM\Message\Topics | null