public function __construct(Elastic $elastic, $index) { $this->elastic = $elastic; $this->index = $index; }