Files
wp-plugin-starter-template-…/includes/class-plugin.php
marcusquinn 200cc5671d Fix indentation issues in PHP files
- Fixed tabs vs spaces indentation issues in PHP files
- Updated phpcs.xml configuration
2025-04-21 15:01:09 +01:00

65 lines
1.0 KiB
PHP

<?php
/**
* Main plugin class
*
* @package WPALLSTARS\PluginStarterTemplate
*/
namespace WPALLSTARS\PluginStarterTemplate;
use WPALLSTARS\PluginStarterTemplate\Admin\Admin;
/**
* Plugin class
*/
class Plugin {
/**
* Core instance
*
* @var Core
*/
private $core;
/**
* Admin instance
*
* @var Admin
*/
private $admin;
/**
* Plugin file
*
* @var string
*/
private $plugin_file;
/**
* Plugin version
*
* @var string
*/
private $version;
/**
* Constructor
*
* @param string $plugin_file Main plugin file path.
* @param string $version Plugin version.
*/
public function __construct( $plugin_file, $version ) {
$this->plugin_file = $plugin_file;
$this->version = $version;
$this->core = new Core( $version );
$this->admin = new Admin( $this->core );
}
/**
* Initialize the plugin
*/
public function init() {
// Initialization logic goes here.
}
}