LMongo\Connection::__get PHP Method

__get() public method

Dynamically pass collection name to MongoCollection and return it.
public __get ( string $name ) : MongoCollection
$name string
return MongoCollection
    public function __get($name)
    {
        return new \MongoCollection($this->getMongoDB(), $name);
    }