protected getEndCallback ( Phergie\Irc\Client\React\ReadStream $read, Phergie\Irc\Client\React\WriteStream $write, Phergie\Irc\ConnectionInterface $connection, React\EventLoop\Timer\TimerInterface $timer ) : callable | ||
$read | Phergie\Irc\Client\React\ReadStream | Read stream for this connection |
$write | Phergie\Irc\Client\React\WriteStream | Write stream for this connection |
$connection | Phergie\Irc\ConnectionInterface | Terminated connection |
$timer | React\EventLoop\Timer\TimerInterface | Timer used to handle asynchronously queued events on the connection, which must be cancelled |
return | callable |