Elastica\Aggregation\AbstractAggregation::__construct PHP Method

__construct() public method

public __construct ( string $name )
$name string the name of this aggregation
    public function __construct($name)
    {
        $this->setName($name);
    }

Usage Example

Beispiel #1
0
 /**
  * @param string      $name
  * @param string|null $bucketsPath
  */
 public function __construct($name, $bucketsPath = null)
 {
     parent::__construct($name);
     if ($bucketsPath !== null) {
         $this->setBucketsPath($bucketsPath);
     }
 }
All Usage Examples Of Elastica\Aggregation\AbstractAggregation::__construct