public jsonSerialize ( ) : mixed | ||
Результат | mixed | data which can be serialized by json_encode, which is a value of any type other than a resource. |
function jsonSerialize()
{
return ["authid" => $this->authId, "auth_method" => $this->authMethod, "auth_roles" => $this->authRoles];
}