PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | app/Interfaces/FeatureInterface.php +20 -0 2.0.1 → 2.1.1 View file →
@@ -1,0 +1,20 @@
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 +}