FossabotRole
interface FossabotRole implements FossabotDataModel (View source)
Fossabot role context data model. Defines the ID, name and type of role associated to the user.
Methods
string
toString()
String representation of the object. For complex objects, this would normally be a JSON string.
from
Stringable
static FossabotDataModel
createFromBody(array $body)
Creates a new Fossabot data model instance from a parsed array of API data.
from
FossabotDataModel
string
id()
Role ID.
string
name()
Role name.
string
type()
Role type.
Details
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.
toArray()
No description
static FossabotDataModel
createFromBody(array $body)
Creates a new Fossabot data model instance from a parsed array of API data.
string
id()
Role ID.
string
name()
Role name.
string
type()
Role type.