1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 20:03:53 +02:00

de-subclassing the file, adding a version attribute, setting it in the constructor

This commit is contained in:
Tom McFarlin 2014-05-08 18:09:10 -04:00
parent 00c5f7d733
commit cc6df31722
2 changed files with 14 additions and 4 deletions

View file

@ -20,9 +20,14 @@
* @package Plugin_Name * @package Plugin_Name
* @subpackage Plugin_Name/admin * @subpackage Plugin_Name/admin
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @extends Plugin_Name
*/ */
class Plugin_Name_Admin extends Plugin_Name { class Plugin_Name_Admin {
private $version;
public function __construct( $version ) {
$this->version = $version;
}
/** /**
* Short description. (use period) * Short description. (use period)

View file

@ -20,9 +20,14 @@
* @package Plugin_Name * @package Plugin_Name
* @subpackage Plugin_Name/public * @subpackage Plugin_Name/public
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @extends Plugin_Name
*/ */
class Plugin_Name_Public extends Plugin_Name { class Plugin_Name_Public {
private $version;
public function __construct( $version ) {
$this->version = $version;
}
/** /**
* Short description. (use period) * Short description. (use period)