MemberTokenGenerator
Generates / Validates a MemberTokenType for graphql responses
Tags
Table of Contents
Methods
- getErrorMessage() : string
- Humanise error message based on status code
- generateResponse() : array<string|int, mixed>
- Generate MemberToken response
Methods
getErrorMessage()
Humanise error message based on status code
public
getErrorMessage(string $status) : string
Parameters
- $status : string
Tags
Return values
stringgenerateResponse()
Generate MemberToken response
protected
generateResponse(string $status[, Member $member = null ][, string $token = null ]) : array<string|int, mixed>
Parameters
- $status : string
-
Status code
- $member : Member = null
- $token : string = null
Return values
array<string|int, mixed> —Response in format required by MemberToken