Automattic\WooCommerce\Internal\PushNotifications\Entities

PushToken::set_last_sent_at_gmt │ public │ WC 11.2.0

Sets the date this token was last sent to WPCOM.

See {@see self::set_created_at_gmt()} for why this bypasses validation.

Method of the class: PushToken{}

No Hooks.

Returns

void. Nothing (null).

Usage

$PushToken = new PushToken();
$PushToken->set_last_sent_at_gmt( ?string $last_sent_at_gmt ): void;
?string $last_sent_at_gmt(required)
.

Changelog

Since 11.2.0 Introduced.

PushToken::set_last_sent_at_gmt() code WC 11.3.0

public function set_last_sent_at_gmt( ?string $last_sent_at_gmt ): void {
	$this->last_sent_at_gmt = $this->validate_gmt_datetime( $last_sent_at_gmt );
}