Dumplie\Inventory\Application\Command\CreateProduct::currency PHP Method

currency() public method

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

Usage Example

 /**
  * @param CreateProduct $createProduct
  *
  * @throws \Exception
  */
 public function handle(CreateProduct $createProduct)
 {
     $this->products->add(new Product(new SKU($createProduct->sku()), new Price($createProduct->amount(), $createProduct->currency(), $createProduct->precision()), $createProduct->isInStock()));
 }