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
Methods summary
Methods inherited from WonderPush\Obj\BaseObject
__toString(),
_new(),
clearAllFields(),
deepClone(),
jsonSerialize(),
toArray(),
toData()