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