From 0d63ec21e55fac0a3be5f4f795690e09bcefaea0 Mon Sep 17 00:00:00 2001 From: Tom McFarlin Date: Thu, 8 May 2014 18:10:04 -0400 Subject: [PATCH] adding getters for the protected properties --- .../trunk/includes/class-plugin-name.php | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/plugin-name/trunk/includes/class-plugin-name.php b/plugin-name/trunk/includes/class-plugin-name.php index ee83daa..e9fd502 100644 --- a/plugin-name/trunk/includes/class-plugin-name.php +++ b/plugin-name/trunk/includes/class-plugin-name.php @@ -23,24 +23,6 @@ */ class Plugin_Name { - protected $plugin_slug = 'plugin-name-slug'; - - protected $version = '1.0.0'; - - protected $loader; - - public function __construct( Plugin_Name_Loader $loader = NULL ) { - $this->loader = $loader; - } - - public function run() { - $this->loader->run(); - } - - public function get_plugin_slug() { - return $this->plugin_slug; - } - /** * This class is used to define common functionality that exists between * both the dashboard and the public-facing side of the website. Think @@ -53,4 +35,26 @@ class Plugin_Name { * An instance of this class should then be passed to the loader. */ + protected $plugin_slug = 'plugin-name-slug'; + + protected $version = '1.0.0'; + + protected $loader; + + public function __construct( Plugin_Name_Loader $loader ) { + $this->loader = $loader; + } + + public function run() { + $this->loader->run(); + } + + public function get_version() { + return $this->version; + } + + public function get_slug() { + return $this->plugin_slug; + } + }