| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Metricool\Interfaces; |
| 6 |
|
| 7 |
/** |
| 8 |
* This interface can be used to register a feature. Features will only |
| 9 |
* be accepted and registered by {@see FeatureManager} when they implement |
| 10 |
* this interface. |
| 11 |
*/ |
| 12 |
interface FeatureInterface |
| 13 |
{ |
| 14 |
/** |
| 15 |
* This method should be used to register all hooks and filters. The |
| 16 |
* {@see FeatureManager} will make sure the method is called in the boot |
| 17 |
* process of the plugin. |
| 18 |
*/ |
| 19 |
public function register(): void; |
| 20 |
} |
| 21 |
|