wasMerged = $wasMerged; } /** * @throws \UnexpectedValueException */ public function wasMerged(): bool { if (null === $this->wasMerged) { throw new \UnexpectedValueException("Import failed as {$this->import->getObject()} object is missing import handler."); } return $this->wasMerged; } public function importIsForObject(string $object): bool { return $this->import->getObject() === $object; } }