__get() public method

Gets a collection
public __get ( string $name ) : MongoCollection
$name string The name of the collection.
return MongoCollection
Esempio n. 1
0
 /**
  * Wrapper method for MongoDB::__get().
  *
  * @see http://php.net/manual/en/mongodb.get.php
  * @param string $name
  * @return \MongoCollection
  */
 public function __get($name)
 {
     return $this->mongoDB->__get($name);
 }