MongoLite\Database::listCollections PHP Method

listCollections() public method

Get all collections in the database
public listCollections ( ) : array
return array
    public function listCollections()
    {
        foreach ($this->getCollectionNames() as $name) {
            if (!isset($this->collections[$name])) {
                $this->collections[$name] = new Collection($name, $this);
            }
        }
        return $this->collections;
    }