Handler.php
78 lines
| 1 | <?php |
| 2 | |
| 3 | namespace EmbedPress\Ends; |
| 4 | |
| 5 | (defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed."); |
| 6 | |
| 7 | /** |
| 8 | * Modeling class to handle the plugin in different environments. I.e: public area/admin area. |
| 9 | * |
| 10 | * @package EmbedPress |
| 11 | * @subpackage EmbedPress/Ends |
| 12 | * @author EmbedPress <help@embedpress.com> |
| 13 | * @copyright Copyright (C) 2023 WPDeveloper. All rights reserved. |
| 14 | * @license GPLv3 or later |
| 15 | * @since 1.0.0 |
| 16 | */ |
| 17 | abstract class Handler |
| 18 | { |
| 19 | /** |
| 20 | * The name of the plugin. |
| 21 | * |
| 22 | * @since 1.0.0 |
| 23 | * @access private |
| 24 | * |
| 25 | * @var string $pluginName The name of the plugin. |
| 26 | */ |
| 27 | protected $pluginName; |
| 28 | |
| 29 | /** |
| 30 | * The version of the plugin. |
| 31 | * |
| 32 | * @since 1.0.0 |
| 33 | * @access private |
| 34 | * |
| 35 | * @var string $pluginVersion The version of the plugin. |
| 36 | */ |
| 37 | protected $pluginVersion; |
| 38 | |
| 39 | /** |
| 40 | * Initialize the class and set its properties. |
| 41 | * |
| 42 | * @since 1.0.0 |
| 43 | * |
| 44 | * @param string $pluginName - The name of the plugin. |
| 45 | * @param string $pluginVersion - The version of the plugin. |
| 46 | * |
| 47 | * @return void |
| 48 | */ |
| 49 | public function __construct($pluginName, $pluginVersion) |
| 50 | { |
| 51 | $this->pluginName = $pluginName; |
| 52 | $this->pluginVersion = $pluginVersion; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Method that register all scripts for the admin area. |
| 57 | * |
| 58 | * @since 1.0.0 |
| 59 | * |
| 60 | * @return void |
| 61 | */ |
| 62 | public function enqueueScripts() |
| 63 | { |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Method that register all stylesheets for the admin area. |
| 68 | * |
| 69 | * @since 1.0.0 |
| 70 | * @static |
| 71 | * |
| 72 | * @return void |
| 73 | */ |
| 74 | public static function enqueueStyles() |
| 75 | { |
| 76 | } |
| 77 | } |
| 78 |