public function max($alias, $field = null, $script = null)
    {
        $aggregation = new MaxAggregation($alias, $field, $script);

        $this->append($aggregation);
    }
public function max($alias, $field = null, $script = null)
    {
        $aggregation = new MaxAggregation($alias, $field, $script);

        $this->append($aggregation);
    }
public function max ( $ alias , $ field = null , $ script = null ) { $ aggregation = new MaxAggregation ( $ alias , $ field , $ script ) ; $ this -> append ( $ aggregation ) ; }
Add an max aggregate.

@param $alias
@param string|null $field
@param string|null $script
Add an max aggregate .