function __construct($index, $query) { parent::__construct(); $this->index = $index; $this->query = $query; }