clients[] = $a; return $b; } /** * {@inheritDoc} * * @return boolean */ public function isOpen(): bool { return true; } /** * {@inheritDoc} * * @param mixed $data * @return void */ public function send($data) { foreach ($this->clients as $client) { $client->send($data); } } /** * {@inheritDoc} * * @return mixed */ public function receive() { foreach ($this->clients as $client) { if ($read = $client->receive()) { return $read; } } return false; } }