DocumentSessionManager implements IErrorable
FinalYes
Table of Contents
Interfaces
Methods
- __construct() : mixed
- addSession() : DocumentSession|null
- findOrCreateSession() : DocumentSession|null
- findSession() : DocumentSession|null
- getErrorByCode() : Error|null
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getErrorsByCode() : array<string|int, Error>
- Getting array of errors with the necessary code.
- getUserId() : int
- lock() : bool
- setAttachedObject() : self
- setFile() : self
- setService() : self
- setSessionContext() : self
- setSessionType() : self
- setUserId() : self
- setVersion() : self
- unlock() : void
Methods
__construct()
public
__construct() : mixed
addSession()
public
addSession() : DocumentSession|null
Return values
DocumentSession|nullfindOrCreateSession()
public
findOrCreateSession() : DocumentSession|null
Return values
DocumentSession|nullfindSession()
public
findSession() : DocumentSession|null
Return values
DocumentSession|nullgetErrorByCode()
Getting once error with the necessary code.
public
getErrorByCode(string $code) : Error|null
Parameters
- $code : string
Return values
Error|nullgetErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getErrorsByCode()
Getting array of errors with the necessary code.
public
getErrorsByCode(string $code) : array<string|int, Error>
Parameters
- $code : string
Return values
array<string|int, Error>getUserId()
public
getUserId() : int
Return values
intlock()
public
lock() : bool
Return values
boolsetAttachedObject()
public
setAttachedObject(AttachedObject|null $attachedObject) : self
Parameters
- $attachedObject : AttachedObject|null
Return values
selfsetFile()
public
setFile(File|null $file) : self
Parameters
- $file : File|null
Return values
selfsetService()
public
setService(DocumentService $service) : self
Parameters
- $service : DocumentService
Return values
selfsetSessionContext()
public
setSessionContext(DocumentSessionContext $sessionContext) : self
Parameters
- $sessionContext : DocumentSessionContext
Return values
selfsetSessionType()
public
setSessionType(int $sessionType) : self
Parameters
- $sessionType : int
Return values
selfsetUserId()
public
setUserId(int $userId) : self
Parameters
- $userId : int
Return values
selfsetVersion()
public
setVersion(Version|null $version) : self
Parameters
- $version : Version|null
Return values
selfunlock()
public
unlock() : void