\Gomoob\Pushwoosh\Model\RequestPushStatRequest

Class which represents Pushwoosh '/pushStat' request.

Summary

Methods
Properties
Constants
create()
getApplication()
getHash()
getHwid()
setApplication()
setHash()
setHwid()
toJSON()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$application
$hash
$hwid
N/A

Properties

$application

$application : string

The Pushwoosh application ID where you send the message to.

Type

string

$hash

$hash : string

The tag received in push notification.

Type

string

$hwid

$hwid : string

The hardware device id used in registerDevice function call.

Type

string

Methods

create()

create() : \Gomoob\Pushwoosh\Model\Request\PushStatRequest

Utility function used to create a new instance of the <tt>PushStatRequest</tt>.

Returns

\Gomoob\Pushwoosh\Model\Request\PushStatRequest

the new created instance.

getApplication()

getApplication() : string

Gets the Pushwoosh application ID where you send the message to.

Returns

string —

Pushwoosh application ID where you send the message to.

getHash()

getHash() : string

Gets the tag received in push notification.

Returns

string —

the tag received in push notification.

getHwid()

getHwid() : string

Gets the hardware device id used in registerDevice function call.

Returns

string —

the hardware device id used in registerDevice function call.

setApplication()

setApplication(string $application) : \Gomoob\Pushwoosh\Model\Request\PushStatRequest

Sets the Pushwoosh application ID where you send the message to.

Parameters

string $application

Pushwoosh application ID where you send the message to.

Returns

\Gomoob\Pushwoosh\Model\Request\PushStatRequest

this instance.

setHash()

setHash(string $hash) : \Gomoob\Pushwoosh\Model\Request\PushStatRequest

Sets the tag received in push notification.

Parameters

string $hash

the tag received in push notification.

Returns

\Gomoob\Pushwoosh\Model\Request\PushStatRequest

this instance.

setHwid()

setHwid(string $hwid) : \Gomoob\Pushwoosh\Model\Request\PushStatRequest

Sets the hardware device id used in registerDevice function call.

Parameters

string $hwid

the the hardware device id used in registerDevice function call.

Returns

\Gomoob\Pushwoosh\Model\Request\PushStatRequest

this instance.

toJSON()

toJSON() : array

Creates a JSON representation of this request.

Returns

array —

a PHP which can be passed to the 'json_encode' PHP method.