UserAccountClientAuthorization
in package
implements
JsonSerializable
Class User
Tags
Table of Contents
Interfaces
- JsonSerializable
Constants
- ACCOUNT_TYPE_ID_ACCOUNTANT = 2
- ACCOUNT_TYPE_ID_COWORKER = 1
- ACCOUNT_TYPE_ID_PARTNER = 3
- AUTHORIZATION_STATUS_ID_ACTIVE = 1
- AUTHORIZATION_STATUS_ID_BLOCKED = -1
- AUTHORIZATION_STATUS_ID_INACTIVE = 0
- AUTHORIZATION_TYPE_ID_EDIT = 4
- AUTHORIZATION_TYPE_ID_VIEW = 5
- VALUES_OF_ACCOUNT_TYPE_ID = [self::ACCOUNT_TYPE_ID_COWORKER, self::ACCOUNT_TYPE_ID_ACCOUNTANT, self::ACCOUNT_TYPE_ID_PARTNER]
- VALUES_OF_AUTHORIZATION_STATUS_ID = [self::AUTHORIZATION_STATUS_ID_ACTIVE, self::AUTHORIZATION_STATUS_ID_INACTIVE, self::AUTHORIZATION_STATUS_ID_BLOCKED]
- VALUES_OF_AUTHORIZATION_TYPE_ID = [self::AUTHORIZATION_TYPE_ID_EDIT, self::AUTHORIZATION_TYPE_ID_VIEW]
Properties
- $accountTypeId : int
- $authorizationStatusId : int
- $authorizationTypeId : int
- $client : Client
- $id : int|null
- $userAccount : UserAccount
Methods
- checkForSelfAuthorization() : mixed
- getAccountTypeId() : int|null
- getAuthorizationStatusId() : int|null
- getAuthorizationTypeId() : int|null
- getClient() : Client
- Get $client
- getId() : int|null
- Get $id
- getUserAccount() : UserAccount
- Get $userAccount
- jsonSerialize() : mixed
- setAccountTypeId() : self
- setAuthorizationStatusId() : self
- setAuthorizationTypeId() : self
- setClient() : self
- Set $client
- setId() : self
- Set $id
- setUserAccount() : self
- Set $userAccount
Constants
ACCOUNT_TYPE_ID_ACCOUNTANT
public
mixed
ACCOUNT_TYPE_ID_ACCOUNTANT
= 2
ACCOUNT_TYPE_ID_COWORKER
public
mixed
ACCOUNT_TYPE_ID_COWORKER
= 1
ACCOUNT_TYPE_ID_PARTNER
public
mixed
ACCOUNT_TYPE_ID_PARTNER
= 3
AUTHORIZATION_STATUS_ID_ACTIVE
public
mixed
AUTHORIZATION_STATUS_ID_ACTIVE
= 1
AUTHORIZATION_STATUS_ID_BLOCKED
public
mixed
AUTHORIZATION_STATUS_ID_BLOCKED
= -1
AUTHORIZATION_STATUS_ID_INACTIVE
public
mixed
AUTHORIZATION_STATUS_ID_INACTIVE
= 0
AUTHORIZATION_TYPE_ID_EDIT
public
mixed
AUTHORIZATION_TYPE_ID_EDIT
= 4
AUTHORIZATION_TYPE_ID_VIEW
public
mixed
AUTHORIZATION_TYPE_ID_VIEW
= 5
VALUES_OF_ACCOUNT_TYPE_ID
public
mixed
VALUES_OF_ACCOUNT_TYPE_ID
= [self::ACCOUNT_TYPE_ID_COWORKER, self::ACCOUNT_TYPE_ID_ACCOUNTANT, self::ACCOUNT_TYPE_ID_PARTNER]
VALUES_OF_AUTHORIZATION_STATUS_ID
public
mixed
VALUES_OF_AUTHORIZATION_STATUS_ID
= [self::AUTHORIZATION_STATUS_ID_ACTIVE, self::AUTHORIZATION_STATUS_ID_INACTIVE, self::AUTHORIZATION_STATUS_ID_BLOCKED]
VALUES_OF_AUTHORIZATION_TYPE_ID
public
mixed
VALUES_OF_AUTHORIZATION_TYPE_ID
= [self::AUTHORIZATION_TYPE_ID_EDIT, self::AUTHORIZATION_TYPE_ID_VIEW]
Properties
$accountTypeId
private
int
$accountTypeId
Tags
$authorizationStatusId
private
int
$authorizationStatusId
Tags
$authorizationTypeId
private
int
$authorizationTypeId
Tags
$client
private
Client
$client
Tags
$id
private
int|null
$id
Tags
$userAccount
private
UserAccount
$userAccount
Tags
Methods
checkForSelfAuthorization()
public
checkForSelfAuthorization() : mixed
Tags
getAccountTypeId()
public
getAccountTypeId() : int|null
Return values
int|nullgetAuthorizationStatusId()
public
getAuthorizationStatusId() : int|null
Return values
int|nullgetAuthorizationTypeId()
public
getAuthorizationTypeId() : int|null
Return values
int|nullgetClient()
Get $client
public
getClient() : Client
Return values
ClientgetId()
Get $id
public
getId() : int|null
Return values
int|nullgetUserAccount()
Get $userAccount
public
getUserAccount() : UserAccount
Return values
UserAccountjsonSerialize()
public
jsonSerialize() : mixed
setAccountTypeId()
public
setAccountTypeId(int|null $accountTypeId) : self
Parameters
- $accountTypeId : int|null
Return values
selfsetAuthorizationStatusId()
public
setAuthorizationStatusId(int|null $authorizationStatusId) : self
Parameters
- $authorizationStatusId : int|null
Return values
selfsetAuthorizationTypeId()
public
setAuthorizationTypeId(mixed $authorizationTypeId) : self
Parameters
- $authorizationTypeId : mixed
Return values
selfsetClient()
Set $client
public
setClient(Client $client) : self
Parameters
- $client : Client
-
$client
Return values
selfsetId()
Set $id
public
setId(int|null $id) : self
Parameters
- $id : int|null
-
$id
Return values
selfsetUserAccount()
Set $userAccount
public
setUserAccount(UserAccount $userAccount) : self
Parameters
- $userAccount : UserAccount
-
$userAccount