Dumplie\Inventory\Application\Command\CreateProduct::precision PHP 메소드

precision() 공개 메소드

public precision ( ) : integer
리턴 integer
    public function precision() : int
    {
        return $this->precision;
    }

Usage Example

예제 #1
0
 /**
  * @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()));
 }