public function __construct($id, SocketInterface $client) { $this->id = $id; $this->client = $client; }