👁 查看:StockStatus.php
路径:/home/forge/kingkrunch.com/wp/wp-content/plugins/woocommerce/src/Api/Enums/Products/StockStatus.php
大小:611 B · 修改:2026-07-15 13:50:33 · 权限:0644 · 可写
<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Enums\Products;

use Automattic\WooCommerce\Api\Attributes\Description;

#[Description( 'The stock status of a product.' )]
enum StockStatus: int {
	#[Description( 'The product is in stock.' )]
	case InStock = 1;

	#[Description( 'The product is out of stock.' )]
	case OutOfStock = 2;

	#[Description( 'The product is on backorder.' )]
	case OnBackorder = 3;

	#[Description( 'The stock status is not one of the standard WooCommerce values (e.g. added by a plugin). Inspect raw_stock_status for the underlying value.' )]
	case Other = 4;
}