PluginProbe
Core Framework / trunk
Core Framework vtrunk
2.0.2 2.0.1 2.0.0 1.10.4 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.3.10 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.1.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.8.0 All 32 releases
core-framework / wp / Common / Abstracts / Base.php

Base.php in Core Framework trunk, at wp/Common/Abstracts/Base.php

41 lines 744 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * CoreFramework
4 *
5 * @package CoreFramework
6 * @author Core Framework <hello@coreframework.com>
7 * @copyright 2023 Core Framework
8 * @license MIT
9 * @link https://coreframework.com
10 */
11
12 declare (strict_types = 1);
13
14 namespace CoreFramework\Common\Abstracts;
15
16 use CoreFramework\Config\Plugin;
17
18 /**
19 * The Base class which can be extended by other classes to load in default methods
20 *
21 * @package CoreFramework\Common\Abstracts
22 * @since 0.0.0
23 */
24 abstract class Base {
25
26 /**
27 * @var object : will be filled with data from the plugin config class
28 * @see Plugin
29 */
30 protected Plugin $plugin;
31
32 /**
33 * Base constructor.
34 *
35 * @since 0.0.0
36 */
37 public function __construct() {
38 $this->plugin = Plugin::init();
39 }
40 }
41