MatthiasMullie\Scrapbook\Adapters\Couchbase::__construct PHP Method

__construct() public method

public __construct ( CouchbaseBucket $client )
$client CouchbaseBucket
    public function __construct(\CouchbaseBucket $client)
    {
        $this->client = $client;
        $info = $this->client->manager()->info();
        foreach ($info['nodes'] as $node) {
            if ($node['status'] !== 'healthy') {
                throw new ServerUnhealthy('Server isn\'t ready yet');
            }
        }
    }