| 1 |
<?php |
| 2 |
|
| 3 |
namespace TierPricingTable\Services\API\ProductFields; |
| 4 |
|
| 5 |
use TierPricingTable\PriceManager; |
| 6 |
use WC_Product; |
| 7 |
class MinimumOrderQuantity extends ProductField { |
| 8 |
public function getFieldSlug() : string { |
| 9 |
return 'tiered_pricing_minimum_quantity'; |
| 10 |
} |
| 11 |
|
| 12 |
public function getValue( array $product ) : ?int { |
| 13 |
return null; |
| 14 |
} |
| 15 |
|
| 16 |
public function updateValue( $value, WC_Product $product ) { |
| 17 |
} |
| 18 |
|
| 19 |
public function getType() : string { |
| 20 |
return 'string'; |
| 21 |
} |
| 22 |
|
| 23 |
public function getDescription() : string { |
| 24 |
return 'Minimum order quantity.'; |
| 25 |
} |
| 26 |
|
| 27 |
} |
| 28 |
|