class ArrayChannelConnectionManager implements ChannelConnectionManager

Properties

protected ChannelConnection> $connections

The underlying connections.

Methods

for(string $name)

Get a channel connection manager for the given channel name.

void
add(Connection $connection, array $data)

Add a connection.

void
remove(Connection $connection)

Remove a connection.

find(Connection $connection)

Find a connection.

findById(string $id)

Find a connection by its ID.

array
all()

Get all of the connections.

bool
isEmpty()

Determine whether any connections remain on the channel.

void
flush()

Flush the channel connection manager.

Details

at line 23
ChannelConnectionManager for(string $name)

Get a channel connection manager for the given channel name.

Parameters

string $name

Return Value

ChannelConnectionManager

at line 31
void add(Connection $connection, array $data)

Add a connection.

Parameters

Connection $connection
array $data

Return Value

void

at line 39
void remove(Connection $connection)

Remove a connection.

Parameters

Connection $connection

Return Value

void

at line 47
ChannelConnection|null find(Connection $connection)

Find a connection.

Parameters

Connection $connection

Return Value

ChannelConnection|null

at line 55
ChannelConnection|null findById(string $id)

Find a connection by its ID.

Parameters

string $id

Return Value

ChannelConnection|null

at line 65
array all()

Get all of the connections.

Return Value

array

at line 73
bool isEmpty()

Determine whether any connections remain on the channel.

Return Value

bool

at line 81
void flush()

Flush the channel connection manager.

Return Value

void