__construct() public method

Instantiate class
public __construct ( Mongo $db, $collection, $fields = NULL ) : void
$db DB\Mongo object
$collection string
$fields array
return void
Beispiel #1
0
 public function __construct($collection = null)
 {
     $db = Base::instance()->get($this->connection);
     parent::__construct($db, $collection ?: $this->collection);
 }