Credential
in package
uses
OptTrait
AbstractYes
Table of Contents
Properties
- $opt : array<string|int, mixed>
- $userModule : UserModule
Methods
- __construct() : mixed
- checkUserModule() : mixed
- getOpt() : array<string|int, mixed>
- getOptUser() : mixed
- getOptUserId() : mixed
- getOptVal() : mixed
- getOptValOr() : mixed
- getRawCredential() : User|null
- getUser() : User|null
- getUserModule() : UserModule
- hasOptKey() : mixed
- isFine() : mixed
- setOpt() : static
- setUserModule() : self
- toJson() : mixed
- toJsonAssoc() : mixed
Properties
$opt
private
array<string|int, mixed>
$opt
$userModule
private
UserModule
$userModule
Methods
__construct()
public
__construct([UserModule|null $userModule = null ][, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
- $userModule : UserModule|null = null
- $opt : array<string|int, mixed> = []
checkUserModule()
public
abstract static checkUserModule(UserModule $userModule) : mixed
Parameters
- $userModule : UserModule
getOpt()
public
getOpt([array<string|int, mixed> $opt = null ]) : array<string|int, mixed>
Parameters
- $opt : array<string|int, mixed> = null
Return values
array<string|int, mixed>getOptUser()
public
getOptUser() : mixed
getOptUserId()
public
getOptUserId() : mixed
getOptVal()
public
getOptVal(string $key) : mixed
Parameters
- $key : string
getOptValOr()
public
getOptValOr(string $key[, mixed $or = null ]) : mixed
Parameters
- $key : string
- $or : mixed = null
getRawCredential()
public
getRawCredential() : User|null
Return values
User|nullgetUser()
public
getUser() : User|null
Return values
User|nullgetUserModule()
public
getUserModule() : UserModule
Return values
UserModulehasOptKey()
public
hasOptKey(string $key) : mixed
Parameters
- $key : string
isFine()
public
abstract isFine() : mixed
setOpt()
public
setOpt(array<string|int, mixed> $opt) : static
Parameters
- $opt : array<string|int, mixed>
Return values
staticsetUserModule()
public
setUserModule(UserModule $userModule) : self
Parameters
- $userModule : UserModule
Return values
selftoJson()
public
toJson() : mixed
toJsonAssoc()
public
abstract toJsonAssoc() : mixed