Code Duplication    Length = 9-9 lines in 2 locations

src/Aggregation/Metric/PercentileRanksAggregation.php 1 location

@@ 47-55 (lines=9) @@
44
     * @param string $script
45
     * @param int    $compression
46
     */
47
    public function __construct($name, $field = null, $values = null, $script = null, $compression = null)
48
    {
49
        parent::__construct($name);
50
51
        $this->setField($field);
52
        $this->setValues($values);
53
        $this->setScript($script);
54
        $this->setCompression($compression);
55
    }
56
57
    /**
58
     * @return array

src/Aggregation/Metric/PercentilesAggregation.php 1 location

@@ 47-55 (lines=9) @@
44
     * @param string $script
45
     * @param int    $compression
46
     */
47
    public function __construct($name, $field = null, $percents = null, $script = null, $compression = null)
48
    {
49
        parent::__construct($name);
50
51
        $this->setField($field);
52
        $this->setPercents($percents);
53
        $this->setScript($script);
54
        $this->setCompression($compression);
55
    }
56
57
    /**
58
     * @return array