Dumplie\Customer\Application\Command\CreateCart::currency PHP Méthode

currency() public méthode

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

Usage Example

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