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

currency() public method

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

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()));
 }