Dumplie\Inventory\Application\Command\CreateProductHandler::handle PHP 메소드

handle() 공개 메소드

public handle ( CreateProduct $createProduct )
$createProduct CreateProduct
    public function handle(CreateProduct $createProduct)
    {
        $this->products->add(new Product(new SKU($createProduct->sku()), new Price($createProduct->amount(), $createProduct->currency(), $createProduct->precision()), $createProduct->isInStock()));
    }
CreateProductHandler