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 BaseObject

Base class for DTO objects.

WonderPush\Obj\BaseObject implements WonderPush\Util\JsonSerializable

Direct known subclasses

WonderPush\Net\Request, WonderPush\Net\Response, WonderPush\Obj\InstallationDeviceCapabilities, WonderPush\Obj\InstallationDeviceConfiguration, WonderPush\Obj\InstallationPreferences, WonderPush\Obj\InstallationPushToken, WonderPush\Obj\Notification, WonderPush\Obj\NotificationAlert, WonderPush\Obj\NotificationAlertIosAttachment, WonderPush\Obj\NotificationAlertIosForeground, WonderPush\Obj\NotificationButton, WonderPush\Obj\NotificationButtonAction, WonderPush\Obj\Application, WonderPush\Obj\NotificationButtonActionEvent, WonderPush\Obj\NotificationInApp, WonderPush\Obj\NotificationInAppMap, WonderPush\Obj\NotificationInAppMapPlace, WonderPush\Obj\NotificationPush, WonderPush\Obj\NullObject, WonderPush\Obj\Pagination, WonderPush\Obj\SuccessResponse, WonderPush\Obj\User, WonderPush\Obj\WebSdkInitOptions, WonderPush\Obj\Collection, WonderPush\Params\CollectionParams, WonderPush\Params\DeliveriesCreateParams, WonderPush\Params\PatchInstallationParams, WonderPush\Obj\Event, WonderPush\Obj\GeoLocation, WonderPush\Obj\Installation, WonderPush\Obj\InstallationApplication, WonderPush\Obj\InstallationApplicationApple, WonderPush\Obj\InstallationDevice

Indirect known subclasses

WonderPush\Obj\ApplicationCollection, WonderPush\Obj\DeliveriesCreateResponse, WonderPush\Obj\NotificationPushIos, WonderPush\Obj\NotificationPushWeb, WonderPush\Params\AllInstallationsParams, WonderPush\Obj\InstallationCollection, WonderPush\Obj\NotificationAlertAndroid, WonderPush\Obj\NotificationAlertAndroidButton, WonderPush\Obj\NotificationAlertIos, WonderPush\Obj\NotificationAlertWeb, WonderPush\Obj\NotificationAlertWebButton, WonderPush\Obj\NotificationInAppButton, WonderPush\Obj\NotificationPushAndroid

Namespace: WonderPush\Obj
Noinspection: PhpUndefinedClassInspection
Located at Obj/BaseObject.php

Methods summary

public __construct( $data = null )
public static _new( array $data = null ) : static

Factory style constructor. Compensates PHP 5.3's lack of (new Class())-> syntax support.

Factory style constructor. Compensates PHP 5.3's lack of (new Class())-> syntax support.

Parameters

$data

Returns

static
public clearAllFields( void )
public jsonSerialize( void ) : stdClass

Implements JsonSerializable

Implements JsonSerializable

Returns

stdClass
public __toString( void )
public toData( void ) : stdClass

Returns an object representation of this instance.

Returns an object representation of this instance.

Note that empty() returns null for an object with no properties, unlike for an empty array.

Returns

stdClass
public toArray( void ) : array

Returns an array representation of this instance.

Returns an array representation of this instance.

Note that when serializing an empty instance to JSON you will get [] instead of {}.

Returns

array
public deepClone( void )
WonderPush PHP library API documentation generated by ApiGen