FossabotUser
interface FossabotUser implements FossabotDataModel (View source)
Fossabot user context data model. Contains information about the user that invoked the custom API request.
Methods
String representation of the object. For complex objects, this would normally be a JSON string.
Creates a new Fossabot data model instance from a parsed array of API data.
Message user provider ID.
Message user login name, the lowercased version.
Message user display name, uppercased or localized display name.
Array of user roles.
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
providerId()
Message user provider ID.
string
login()
Message user login name, the lowercased version.
string
displayName()
Message user display name, uppercased or localized display name.
array
roles()
Array of user roles.