Dumplie\Customer\Application\Command\CreateCart::uuid PHP Метод

uuid() публичный Метод

public uuid ( ) : string
Результат string
    public function uuid() : string
    {
        return $this->uuid;
    }

Usage Example

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