InfluxDB\Database::__construct PHP 메소드

__construct() 공개 메소드

Construct a database object
public __construct ( string $name, Client $client )
$name string
$client Client
    public function __construct($name, Client $client)
    {
        if (empty($name)) {
            throw new InvalidArgumentException('No database name provided');
        }
        $this->name = (string) $name;
        $this->client = $client;
    }