protected function handleManufacturePartCommand(ManufacturePartCommand $command)
    {
        $part = Part::manufacture($command->partId, $command->manufacturerId, $command->manufacturerName);

        $this->repository->save($part);
    }
protected function handleManufacturePartCommand(ManufacturePartCommand $command)
    {
        $part = Part::manufacture($command->partId, $command->manufacturerId, $command->manufacturerName);

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