PHP Class LaravelFCM\Message\PayloadDataBuilder

Official google documentation :
显示文件 Open project: brozot/laravel-fcm Class Usage Examples

Protected Properties

Property Type Description
$data array

Public Methods

Method Description
addData ( array $data ) : PayloadDataBuilder add data to existing data
build ( ) : PayloadData generate a PayloadData
getData ( ) : array return data
removeAllData ( ) Remove all data
setData ( array $data ) : PayloadDataBuilder erase data with new data

Method Details

addData() public method

add data to existing data
public addData ( array $data ) : PayloadDataBuilder
$data array
return PayloadDataBuilder

build() public method

generate a PayloadData
public build ( ) : PayloadData
return PayloadData new PayloadData instance

getData() public method

return data
public getData ( ) : array
return array

removeAllData() public method

Remove all data
public removeAllData ( )

setData() public method

erase data with new data
public setData ( array $data ) : PayloadDataBuilder
$data array
return PayloadDataBuilder

Property Details

$data protected_oe property

protected array $data
return array