public function uuid() : string { return $this->uuid; }
/** * @param CreateCart $command * * @throws \Exception */ public function handle(CreateCart $command) { $this->carts->add(new Cart(new CartId($command->uuid()), $command->currency())); }