Total Complexity | 1 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
34 | abstract class Plugin |
||
35 | { |
||
36 | use Registerable; |
||
|
|||
37 | |||
38 | /** |
||
39 | * Registers activation and deactivation hook for the called class. |
||
40 | * |
||
41 | * @param $pluginFile - Plugin File Path. Used for proper Wordpress hooking. |
||
42 | * |
||
43 | * @return Plugin object |
||
44 | */ |
||
45 | public function __construct($pluginFile) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Used for the activation hook in Wordpress. |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | abstract protected static function activate(); |
||
59 | |||
60 | /** |
||
61 | * Used for the deactivation hook in Wordpress. |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | abstract protected static function deactivate(); |
||
66 | } |
||
67 |