/** * A new part aggregate root is created and added to the repository. */ protected function handleManufacturePartCommand(ManufacturePartCommand $command) { $part = Part::manufacture($command->partId, $command->manufacturerId, $command->manufacturerName); $this->repository->save($part); }