Dumplie\Customer\Application\Command\CreateCart::uuid PHP Method

uuid() public method

public uuid ( ) : string
return string
    public function uuid() : string
    {
        return $this->uuid;
    }

Usage Example

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