Automattic\WooCommerce\Internal\PushNotifications\Entities
PushToken::has_required_parameters
Determines whether all the required non-ID parameters are filled.
Method of the class: PushToken{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->has_required_parameters(): bool;
Changelog
| Since 10.4.0 | Introduced. |
PushToken::has_required_parameters() PushToken::has required parameters code WC 10.8.1
private function has_required_parameters(): bool {
return $this->get_user_id()
&& $this->get_token()
&& $this->get_platform()
&& $this->get_origin()
&& $this->get_device_locale()
&& (
$this->get_device_uuid()
|| $this->get_platform() === self::PLATFORM_BROWSER
);
}