public function __construct($indexName, $params = []) { parent::__construct(); $this->name = $indexName; $this->params = new ParamBuilder($this, []); }