Exemplo n.º 1
0
 /**
  * Database constructor.
  * @param string $databaseName
  * @param Connection $connection
  */
 public function __construct($databaseName, Connection $connection)
 {
     $this->name = $databaseName;
     parent::__construct($connection);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }