Documentation

UserAccountClientAuthorization
in package
implements JsonSerializable

Class User

Tags
ORM\Entity

(repositoryClass="Vatjar\Data\Repository\UserAccountClientAuthorizationRepository")

ORM\Table

(name="user_account_client_authorization")

ORM\HasLifecycleCallbacks

()

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

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

$client

private Client $client
Tags
ORM\ManyToOne

(targetEntity="Client", inversedBy="clientAuthorization")

ORM\JoinColumn

(name="client_id", referencedColumnName="id")

$userAccount

private UserAccount $userAccount
Tags
ORM\ManyToOne

(targetEntity="UserAccount", inversedBy="clientAuthorization")

ORM\JoinColumn

(name="user_account_id", referencedColumnName="id")

Methods

setAccountTypeId()

public setAccountTypeId(int|null $accountTypeId) : self
Parameters
$accountTypeId : int|null
Return values
self

setAuthorizationStatusId()

public setAuthorizationStatusId(int|null $authorizationStatusId) : self
Parameters
$authorizationStatusId : int|null
Return values
self

setAuthorizationTypeId()

public setAuthorizationTypeId(mixed $authorizationTypeId) : self
Parameters
$authorizationTypeId : mixed
Return values
self

        
On this page

Search results