public function __construct(\Generator $codec, Client $client) { $this->codec = $codec; $this->client = $client; }