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