CatalogVisibility.php
4 weeks ago
DefaultCustomerAddress.php
2 months ago
FeaturePluginCompatibility.php
4 weeks ago
OrderInternalStatus.php
4 weeks ago
OrderItemType.php
2 months ago
OrderStatus.php
4 weeks ago
PaymentGatewayFeature.php
7 months ago
ProductStatus.php
4 weeks ago
ProductStockStatus.php
4 weeks ago
ProductTaxStatus.php
1 year ago
ProductType.php
4 weeks ago
TaxBasedOn.php
2 months ago
FeaturePluginCompatibility.php
43 lines
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | namespace Automattic\WooCommerce\Enums; |
| 5 | |
| 6 | /** |
| 7 | * Enum class for feature plugin compatibility. |
| 8 | */ |
| 9 | final class FeaturePluginCompatibility { |
| 10 | |
| 11 | /** |
| 12 | * Plugins are compatible by default with the feature. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | public const COMPATIBLE = 'compatible'; |
| 17 | |
| 18 | /** |
| 19 | * Plugins are incompatible by default with the feature. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | public const INCOMPATIBLE = 'incompatible'; |
| 24 | |
| 25 | /** |
| 26 | * Plugin compatibility with the feature is yet to be determined. Internal use only. |
| 27 | * |
| 28 | * @internal |
| 29 | * @var string |
| 30 | */ |
| 31 | public const UNCERTAIN = 'uncertain'; |
| 32 | |
| 33 | /** |
| 34 | * Valid values for registration of feature compatibility. |
| 35 | * |
| 36 | * @var string[] |
| 37 | */ |
| 38 | public const VALID_REGISTRATION_VALUES = array( |
| 39 | self::COMPATIBLE, |
| 40 | self::INCOMPATIBLE, |
| 41 | ); |
| 42 | } |
| 43 |