bootdesk/chat-sdk

ChatFactory
in package

Table of Contents

Properties

$app  : Application
$cachedAdapters  : array<string|int, mixed>|null
$handlerRegistry  : HandlerRegistry

Methods

__construct()  : mixed
default()  : Chat
forGroup()  : Chat
forGroups()  : Chat
baseChat()  : Chat
getAdapters()  : array<string|int, mixed>
registerHandler()  : void

Properties

$cachedAdapters

private array<string|int, mixed>|null $cachedAdapters = null

Methods

default()

public default([ServerRequestInterface|null $request = null ]) : Chat
Parameters
$request : ServerRequestInterface|null = null
Return values
Chat

forGroup()

public forGroup(string $group[, ServerRequestInterface|null $request = null ]) : Chat
Parameters
$group : string
$request : ServerRequestInterface|null = null
Return values
Chat

forGroups()

public forGroups(array<string|int, string> $groups[, ServerRequestInterface|null $request = null ]) : Chat
Parameters
$groups : array<string|int, string>
$request : ServerRequestInterface|null = null
Return values
Chat

getAdapters()

private getAdapters() : array<string|int, mixed>
Return values
array<string|int, mixed>

registerHandler()

private registerHandler(Chat $chat, string $handlerClass[, ServerRequestInterface|null $request = null ]) : void
Parameters
$chat : Chat
$handlerClass : string
$request : ServerRequestInterface|null = null
On this page

Search results