client = $client; return $this; } /** * {@inheritdoc} */ public function wait() { if (!$this->client) { throw new RuntimeException('No client has been specified on the waiter'); } parent::wait(); } }