ChatFactory
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
$app
read-only
private
Application
$app
$cachedAdapters
private
array<string|int, mixed>|null
$cachedAdapters
= null
$handlerRegistry
read-only
private
HandlerRegistry
$handlerRegistry
__construct()
public
__construct(Application $app, HandlerRegistry $handlerRegistry) : mixed
Parameters
-
$app
: Application
-
-
$handlerRegistry
: HandlerRegistry
-
default()
public
default([ServerRequestInterface|null $request = null ]) : Chat
Parameters
-
$request
: ServerRequestInterface|null
= null
-
forGroup()
public
forGroup(string $group[, ServerRequestInterface|null $request = null ]) : Chat
Parameters
-
$group
: string
-
-
$request
: ServerRequestInterface|null
= null
-
forGroups()
public
forGroups(array<string|int, string> $groups[, ServerRequestInterface|null $request = null ]) : Chat
Parameters
-
$groups
: array<string|int, string>
-
-
$request
: ServerRequestInterface|null
= null
-
baseChat()
private
baseChat() : 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
-