AbstractEntity
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- canStartCall() : bool
- checkAccess() : bool
- getCall() : Call
- getChatId() : mixed
- getEntityId() : mixed
- getEntityType() : mixed
- getName() : mixed
- getUsers() : mixed
- onCallCreate() : bool
- onExistingUsersInvite() : bool
- onStateChange() : mixed
- onUserAdd() : bool
- setCall() : mixed
- toArray() : mixed
Methods
__construct()
public
__construct(Call $call, mixed $entityId) : mixed
Parameters
- $call : Call
- $entityId : mixed
canStartCall()
public
abstract canStartCall(int $userId) : bool
Parameters
- $userId : int
Return values
boolcheckAccess()
public
abstract checkAccess(int $userId) : bool
Parameters
- $userId : int
Return values
boolgetCall()
public
getCall() : Call
Return values
CallgetChatId()
public
abstract getChatId() : mixed
getEntityId()
public
getEntityId([mixed $currentUserId = 0 ]) : mixed
Parameters
- $currentUserId : mixed = 0
getEntityType()
public
abstract getEntityType() : mixed
getName()
public
abstract getName(mixed $currentUserId) : mixed
Parameters
- $currentUserId : mixed
getUsers()
public
abstract getUsers() : mixed
onCallCreate()
public
abstract onCallCreate() : bool
Return values
boolonExistingUsersInvite()
public
abstract onExistingUsersInvite(mixed $userIds) : bool
Parameters
- $userIds : mixed
Return values
boolonStateChange()
public
abstract onStateChange(mixed $state, mixed $prevState) : mixed
Parameters
- $state : mixed
- $prevState : mixed
onUserAdd()
public
abstract onUserAdd(mixed $userId) : bool
Parameters
- $userId : mixed
Return values
boolsetCall()
public
setCall(Call $call) : mixed
Parameters
- $call : Call
toArray()
public
toArray([mixed $initiatorId = 0 ]) : mixed
Parameters
- $initiatorId : mixed = 0