src/League/Monga/Database.php
public function allCollections($wrap = false)
    {
        $collections = $this->database->listCollections();

        if (! $wrap) {
            return $collections;
        }

        return array_map(
            function ($collection) {
                return new Collection($collection);
            },
            $collections
        );
    }
public function allCollections($wrap = false)
    {
        $collections = $this->database->listCollections();

        if (! $wrap) {
            return $collections;
        }

        return array_map(
            function ($collection) {
                return new Collection($collection);
            },
            $collections
        );
    }
public function allCollections ( $ wrap = false ) { $ collections = $ this -> database -> listCollections ( ) ; if ( ! $ wrap ) { return $ collections ; } return array_map ( function ( $ collection ) { return new Collection ( $ collection ) ; } , $ collections ) ; }
Returns all collection.

@param boolean $wrap whether to wrap the collection instances in Collection classes.

@return array connections array
Returns all collection .