Blackfire\Player\Player::__construct PHP Method

__construct() public method

public __construct ( Client | Client[] $client )
$client GuzzleHttp\Client | GuzzleHttp\Client[]
    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;
    }