1 | <?php |
||
20 | abstract class BD_Base_Addon extends BD_Addon { |
||
21 | /** |
||
22 | * Use `factory()` method to create instance of this class. |
||
23 | * Don't create instances directly. |
||
24 | * |
||
25 | * @since 5.5 |
||
26 | * @see factory() |
||
27 | */ |
||
28 | public function __construct() { |
||
29 | parent::__construct(); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Setup hooks. |
||
34 | * This can be overridden by the child class. |
||
35 | * |
||
36 | * @since 5.5 |
||
37 | */ |
||
38 | protected function setup_hooks() { |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Getter for cron hook. |
||
43 | * |
||
44 | * @since 5.5 |
||
45 | * |
||
46 | * @return string Cron hook. |
||
47 | */ |
||
48 | public function get_cron_hook() { |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Return reference to the module. |
||
54 | * |
||
55 | * @since 5.5 |
||
56 | * |
||
57 | * @return Module Reference to Module Object |
||
58 | */ |
||
59 | public function get_module() { |
||
61 | } |
||
62 | } |
||
63 |