class Tuple

Constants

BINARY_LENGTH

Length of a feedback tuple (Internal use).

Equals 4 timestamp + 2 tokenlength + 32 token = 38

Methods

__construct(int $invalidatedAtTimestamp, string $deviceToken, Certificate $certificate)

Construct Tuple

getInvalidatedAt()

Moment the device unregistered.

string
getDeviceToken()

Get the device token of the device that unregistered

getCertificate()

Get the certificate used while receiving this tuple

Details

at line 26
__construct(int $invalidatedAtTimestamp, string $deviceToken, Certificate $certificate)

Construct Tuple

Parameters

int $invalidatedAtTimestamp Unix timestamp of the moment the device token was marked as unregistered
string $deviceToken Hexadecimal string of the device token that unregistered
Certificate $certificate The Certificate the device token is associated with and was used for the APNS connection

at line 61
DateTime getInvalidatedAt()

Moment the device unregistered.

Note: Check if the device didn't re-register after this moment before deleting it! Note: This DateTime object is in the UTC timezone.

Return Value

DateTime

at line 71
string getDeviceToken()

Get the device token of the device that unregistered

Return Value

string

at line 81
Certificate getCertificate()

Get the certificate used while receiving this tuple

Return Value

Certificate