getCollection() public method

Get collection from previously selected database by self::useDatabase()
public getCollection ( string $name ) : Collection
$name string
return Collection
コード例 #1
0
 /**
  * 
  * @param string $name
  * @return \Sokil\Mongo\Collection
  */
 protected function getCollection($name)
 {
     return $this->client->getCollection($name);
 }