public function __construct($client)
{
$clients = [];
if (is_array($client)) {
$clients = $client;
} else {
$clients[] = $client;
}
foreach ($clients as $c) {
if (!$c instanceof GuzzleClient) {
throw new LogicException('Blackfire Player accepts a Guzzle client or an array of Guzzle clients.');
}
}
$this->clients = $clients;
}