CatalogVisibility.php
11 months ago
DefaultCustomerAddress.php
1 month ago
FeaturePluginCompatibility.php
8 months ago
OrderInternalStatus.php
11 months ago
OrderItemType.php
1 month ago
OrderStatus.php
8 months ago
PaymentGatewayFeature.php
6 months ago
ProductStatus.php
11 months ago
ProductStockStatus.php
11 months ago
ProductTaxStatus.php
11 months ago
ProductType.php
11 months ago
TaxBasedOn.php
1 month ago
ProductStockStatus.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for all the product stock statuses. |
| 9 | */ |
| 10 | final class ProductStockStatus { |
| 11 | /** |
| 12 | * The product is in stock. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | public const IN_STOCK = 'instock'; |
| 17 | |
| 18 | /** |
| 19 | * The product is out of stock. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | public const OUT_OF_STOCK = 'outofstock'; |
| 24 | |
| 25 | /** |
| 26 | * The product is on backorder. |
| 27 | * |
| 28 | * @var string |
| 29 | */ |
| 30 | public const ON_BACKORDER = 'onbackorder'; |
| 31 | |
| 32 | /** |
| 33 | * The product is low in stock. |
| 34 | * |
| 35 | * @var string |
| 36 | */ |
| 37 | public const LOW_STOCK = 'lowstock'; |
| 38 | } |
| 39 |