interface FossabotContext implements FossabotDataModel (View source)

Fossabot API context data model. Contains additional context about the Fossabot custom API request for more rich integrations.

Methods

string
__toString()

String representation of the object.

string
toString()

String representation of the object. For complex objects, this would normally be a JSON string.

string
toJson(int $options = 0)

Convert the object to its JSON representation.

from  Jsonable
toArray()

No description

createFromBody(array $body)

Creates a new Fossabot data model instance from a parsed array of API data.

channel()

Fossabot channel context.

FossabotMessage|null
message()

Fossabot message context.

Details

string __toString()

String representation of the object.

Return Value

string

String representation of the object

string toString()

String representation of the object. For complex objects, this would normally be a JSON string.

Return Value

string

String representation of the object

string toJson(int $options = 0)

Convert the object to its JSON representation.

Parameters

int $options

JSON encode options

Return Value

string

JSON string

toArray()

No description

static FossabotDataModel createFromBody(array $body)

Creates a new Fossabot data model instance from a parsed array of API data.

Parameters

array $body

Parsed API body

Return Value

FossabotDataModel

FossabotChannel channel()

Fossabot channel context.

Return Value

FossabotChannel

FossabotMessage|null message()

Fossabot message context.

Return Value

FossabotMessage|null