Class Payload
Stores incoming or outgoing message data for a Slack API call.
-
Slack\Payload
implements
ArrayAccess,
JsonSerializable
Methods summary
public static
Response
|
#
fromJson( string $json )
Creates a response object from a JSON message.
Creates a response object from a JSON message.
Parameters
Returns
Response The parsed response.
|
public
|
#
__construct( array $data )
Creates a new payload object.
Creates a new payload object.
Parameters
|
public
array
|
#
getData( )
Gets the payload data.
Returns
array The payload data.
|
public
string
|
#
toJson( )
Serializes the payload to a JSON message.
Serializes the payload to a JSON message.
Returns
string A JSON message.
|
public
|
#
offsetSet( mixed $offset, mixed $value )
Parameters
Implementation of
ArrayAccess::offsetSet()
|
public
boolean
|
#
offsetExists( mixed $offset )
Parameters
Returns
boolean
Implementation of
ArrayAccess::offsetExists()
|
public
|
#
offsetUnset( mixed $offset )
Parameters
Implementation of
ArrayAccess::offsetUnset()
|
public
null
|
#
offsetGet( mixed $offset )
Parameters
Returns
null
Implementation of
ArrayAccess::offsetGet()
|
public
array
|
#
jsonSerialize( )
Returns
array
Implementation of
JsonSerializable::jsonSerialize()
|
public
string
|
|