| 1 |
<?php |
| 2 |
|
| 3 |
namespace Sendy\WooCommerce\Enums; |
| 4 |
|
| 5 |
final class ProcessingMethod extends Enum |
| 6 |
{ |
| 7 |
public const WooCommerce = 'woocommerce'; |
| 8 |
public const Sendy = 'sendy'; |
| 9 |
|
| 10 |
public static function cases(): array |
| 11 |
{ |
| 12 |
return [ |
| 13 |
self::WooCommerce, |
| 14 |
self::Sendy, |
| 15 |
]; |
| 16 |
} |
| 17 |
|
| 18 |
public static function casesWithDescription(): array |
| 19 |
{ |
| 20 |
return [ |
| 21 |
self::WooCommerce => __('Create shipments in WooCommerce', 'sendy'), |
| 22 |
self::Sendy => __('Process shipments in Sendy', 'sendy'), |
| 23 |
]; |
| 24 |
} |
| 25 |
} |
| 26 |
|