/** * Send data to server. * * @param ProtocolImplementationInterface $interface Interface * @return void */ public function send(ProtocolImplementationInterface $interface) { $data = $interface->toString(); $this->connection->send($data); }