Skip to content

Commit e8a703a

Browse files
committed
feat(WC): Added Labelable_Enum interface
1 parent b449181 commit e8a703a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

WC/Enums/Labelable_Enum.php

+20
Original file line numberDiff line numberDiff line change
@@ -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

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"minimum-stability": "dev",
2929
"prefer-stable": true,
3030
"autoload": {
31+
"psr-4": {
32+
"XWC\\Contracts\\": ""
33+
},
3134
"classmap": [
3235
""
3336
]

0 commit comments

Comments
 (0)