| 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 |
|