<?php  namespace App\Services\Orders;  use App\Contracts\DiscountableItem;  class OrderProductFactory { 	/** 	 * @return RegularOrderProduct|TaxlessOrderProduct|null 	 */ 	public static function make(int $number, int $quantity, DiscountableItem $product, string $country): ?OrderProduct 	{ 		switch ($number) { 			case 0: return new RegularOrderProduct($quantity, $product, new Totals, $country);  			case 1:  				if ($country == 'HR') { 					return new RegularOrderProduct($quantity, $product, new Totals, $country); 				}  				return new TaxlessOrderProduct($quantity, $product, new Totals, $country); 		}  		return null; 	} }