PluginProbe
User Admin Simplifier / trunk
User Admin Simplifier vtrunk
3.1.1 3.1.0 trunk 0.3 0.3.1 0.4.2 0.5 0.5.1 0.5.2 0.5.3 0.5.4 0.6 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.7.0 0.7.1 1.0.0 1.0.1 3.0.1
user-admin-simplifier / includes / plugin.php

plugin.php in User Admin Simplifier trunk, at includes/plugin.php

44 lines 683 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class User_Admin_Simplifier\Plugin
4 *
5 * @package User_Admin_Simplifier
6 */
7 namespace User_Admin_Simplifier;
8
9 /**
10 * Main plugin class.
11 *
12 * @since 2.0.0
13 */
14 final class Plugin {
15 /**
16 * The plugin main file path.
17 *
18 * @since 2.0.0
19 * @var string
20 */
21 private $context;
22
23 /**
24 * Sets the plugin main file.
25 *
26 * @since 2.0.0
27 *
28 * @param string $main_file Absolute path to the plugin main file.
29 */
30 public function __construct( $main_file ) {
31 $this->context = $main_file;
32 }
33
34 /**
35 * Gets the plugin main file path.
36 *
37 * @since 3.0.0
38 *
39 * @return string The plugin main file path.
40 */
41 public function get_context() {
42 return $this->context;
43 }
44 }