public function __construct(ElasticsearchModel $child, $parentClass) { $this->child = $child; $this->parentClass = $parentClass; }