AbilityDefinition.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Ability definition interface file. |
| 4 | */ |
| 5 | |
| 6 | declare( strict_types=1 ); |
| 7 | |
| 8 | namespace Automattic\WooCommerce\Abilities; |
| 9 | |
| 10 | defined( 'ABSPATH' ) || exit; |
| 11 | |
| 12 | /** |
| 13 | * Defines a WooCommerce ability registration class. |
| 14 | * |
| 15 | * @since 10.9.0 |
| 16 | */ |
| 17 | interface AbilityDefinition { |
| 18 | |
| 19 | /** |
| 20 | * Get the ability name. |
| 21 | * |
| 22 | * @return string |
| 23 | * |
| 24 | * @since 10.9.0 |
| 25 | */ |
| 26 | public static function get_name(): string; |
| 27 | |
| 28 | /** |
| 29 | * Get the arguments used to register the ability with the WordPress Abilities API. |
| 30 | * |
| 31 | * @return array |
| 32 | * |
| 33 | * @since 10.9.0 |
| 34 | */ |
| 35 | public static function get_registration_args(): array; |
| 36 | } |
| 37 |