CoolCMS API

LoginResult
in package

FinalYes

Table of Contents

Properties

$errorCode  : ResultCode|null
$payload  : JwtPayload|null
$success  : bool
$token  : string|null

Methods

fail()  : self
getErrorCode()  : ResultCode|null
getPayload()  : JwtPayload|null
getToken()  : string|null
isSuccess()  : bool
success()  : self
__construct()  : mixed

Properties

Methods

getToken()

public getToken() : string|null
Return values
string|null

isSuccess()

public isSuccess() : bool
Return values
bool

__construct()

private __construct(bool $success[, string|null $token = null ][, JwtPayload|null $payload = null ][, ResultCode|null $errorCode = null ]) : mixed
Parameters
$success : bool
$token : string|null = null
$payload : JwtPayload|null = null
$errorCode : ResultCode|null = null
On this page

Search results