public function __construct(Connection $connection) { $this->connection = $connection; $this->query = r\Db($connection->getDatabaseName()); }