lib/Elastica/QueryBuilder/DSL/Aggregation.php
public function reverse_nested(string $name, string $path = null): ReverseNested
    {
        return new ReverseNested($name, $path);
    }
public function reverse_nested(string $name, string $path = null): ReverseNested
    {
        return new ReverseNested($name, $path);
    }
public function reverse_nested ( string $ name , string $ path = null ) : ReverseNested { return new ReverseNested ( $ name , $ path ) ; }
reverse nested aggregation.

@see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html

@param string $name The name of this aggregation
@param string $path Optional path to the nested object for this aggregation. Defaults to the root of the main document.

@return ReverseNested
reverse nested aggregation .