__get() public method

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