public function thenPing($url) { return $this->then(function () use($url) { (new HttpClient())->get($url); }); }