DevicesIdUnsubscribe extends Request
Set an unsubscription date for the device's token.
Table of Contents
- $unsubscriptionTime : TokenUnsubscribe|null
- the unsubscription time (in milliseconds since the Unix Epoch)
- from() : static
- Initializing a model from an array
- jsonSerialize() : array<string|int, mixed>
- setUnsubscriptionTime() : static
- Setter for unsubscriptionTime
Properties
$unsubscriptionTime
the unsubscription time (in milliseconds since the Unix Epoch)
protected
TokenUnsubscribe|null
$unsubscriptionTime
= null
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setUnsubscriptionTime()
Setter for unsubscriptionTime
public
setUnsubscriptionTime(TokenUnsubscribe $unsubscriptionTime) : static
Parameters
- $unsubscriptionTime : TokenUnsubscribe
-
the unsubscription time (in milliseconds since the Unix Epoch)
Return values
static —To use in method chains