mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
de-subclassing the file, adding a version attribute, setting it in the constructor
This commit is contained in:
parent
00c5f7d733
commit
cc6df31722
2 changed files with 14 additions and 4 deletions
|
@ -20,9 +20,14 @@
|
|||
* @package Plugin_Name
|
||||
* @subpackage Plugin_Name/admin
|
||||
* @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)
|
||||
|
|
|
@ -20,9 +20,14 @@
|
|||
* @package Plugin_Name
|
||||
* @subpackage Plugin_Name/public
|
||||
* @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)
|
||||
|
|
Loading…
Reference in a new issue