public function setModel($itemModel, $relations = []) { if (!class_exists($itemModel)) { throw new ModelNotFound('Could not find relation model'); } $this->itemModel = $itemModel; $this->itemModelRelations = $relations; }