/**
  * Database constructor.
  * @param string $databaseName
  * @param Connection $connection
  */
 public function __construct($databaseName, Connection $connection)
 {
     $this->name = $databaseName;
     parent::__construct($connection);
 }
 /**
  * Collection constructor.
  * @param Connection $connection
  * @param Database $database
  */
 public function __construct(Connection $connection, Database $database)
 {
     $this->database = $database;
     $this->collection = new \SplObjectStorage();
     parent::__construct($connection);
 }