WonderPush PHP library
  • Namespace
  • Class
Navigation
  • Namespace
  • Class
Namespaces
  • WonderPush
    • Api
    • Errors
    • Net
    • Obj
    • Params
    • Util
Classes
  • Application
  • ApplicationCollection
  • BaseObject
  • Collection
  • DeliveriesCreateResponse
  • Event
  • GeoLocation
  • Installation
  • InstallationApplication
  • InstallationApplicationApple
  • InstallationCollection
  • InstallationDevice
  • InstallationDeviceCapabilities
  • InstallationDeviceConfiguration
  • InstallationPreferences
  • InstallationPushToken
  • Notification
  • NotificationAlert
  • NotificationAlertAndroid
  • NotificationAlertAndroidButton
  • NotificationAlertIos
  • NotificationAlertIosAttachment
  • NotificationAlertIosForeground
  • NotificationAlertWeb
  • NotificationAlertWebButton
  • NotificationButton
  • NotificationButtonAction
  • NotificationButtonActionEvent
  • NotificationInApp
  • NotificationInAppButton
  • NotificationInAppMap
  • NotificationInAppMapPlace
  • NotificationPush
  • NotificationPushAndroid
  • NotificationPushIos
  • NotificationPushWeb
  • NullObject
  • Pagination
  • SuccessResponse
  • User
  • WebSdkInitOptions

Class NullObject

Null marker for WonderPush\Obj\BaseObject fields.

The singleton instance of this class marks JSON null fields, as opposed to fields that are not set - which are represented by PHP's null value.

For instance when deserializing the following JSON object {"foo": "bar", "baz": null} into a WonderPush\Obj\BaseObject, calling getBar() would return NullObject::getInstance(), because the field is set to the JSON null value, but calling getQux() would return null, because the field is not set.

WonderPush\Obj\BaseObject implements WonderPush\Util\JsonSerializable
┗ WonderPush\Obj\NullObject
Namespace: WonderPush\Obj
Located at Obj/NullObject.php

Methods summary

public __construct( void )

DO NOT CALL.

DO NOT CALL.

Throws

LogicException

See

\WonderPush\Obj\NullObject::getInstance()

Overrides

WonderPush\Obj\BaseObject::__construct
public static getInstance( void )

Methods inherited from WonderPush\Obj\BaseObject

__toString(), _new(), clearAllFields(), deepClone(), jsonSerialize(), toArray(), toData()

WonderPush PHP library API documentation generated by ApiGen