/** * {@inheritdoc} */ public function createItem(EntityId $entityId, $entity) { $stateHistory = $this->stateRepository->find($entityId); return Item::reconstitute($entityId, $entity, $stateHistory); }