public function __construct(ElasticsearchModel $parent, $childClassName) { $this->parent = $parent; $this->childClassName = $childClassName; }