We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b449181 commit e8a703aCopy full SHA for e8a703a
WC/Enums/Labelable_Enum.php
@@ -0,0 +1,20 @@
1
+<?php //phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
2
+/**
3
+ * Labelable_Enum interface file.
4
+ *
5
+ * @package WooCommerce Sync Service
6
+ */
7
+
8
+namespace XWC\Contracts\Enums;
9
10
11
+ * Define the labelable enum interface
12
13
+interface Labelable_Enum extends \BackedEnum {
14
+ /**
15
+ * Get the label of the enum
16
17
+ * @return string
18
19
+ public function getLabel(): string;
20
+}
WC/composer.json
@@ -28,6 +28,9 @@
28
"minimum-stability": "dev",
29
"prefer-stable": true,
30
"autoload": {
31
+ "psr-4": {
32
+ "XWC\\Contracts\\": ""
33
+ },
34
"classmap": [
35
""
36
]
0 commit comments