-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature base class poc for standardized separation of concerns using …
…Capabilities class
- Loading branch information
Showing
3 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* Matomo - free/libre analytics platform | ||
* | ||
* @link https://matomo.org | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | ||
* @package matomo | ||
*/ | ||
|
||
namespace WpMatomo; | ||
|
||
abstract class Feature { | ||
|
||
public function is_enabled() { | ||
return true; | ||
} | ||
|
||
public function register_ajax() { | ||
// empty | ||
} | ||
|
||
public function register_hooks() { | ||
// empty | ||
} | ||
|
||
/** | ||
* Optional. For tests only. | ||
* | ||
* @return void | ||
*/ | ||
public function remove_hooks() { | ||
// empty | ||
} | ||
} |