-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from infinum/feature/plugin
Feature/plugin
- Loading branch information
Showing
5 changed files
with
67 additions
and
40 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,29 @@ | ||
<?php | ||
/** | ||
* File that holds Has_Activation interface | ||
* | ||
* @since 1.0.0 | ||
* @package Eightshift_Libs\Core | ||
*/ | ||
declare( strict_types=1 ); | ||
|
||
namespace Eightshift_Libs\Core; | ||
/** | ||
* Interface Has_Activation. | ||
* | ||
* An object that can be activated. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
interface Has_Activation { | ||
/** | ||
* Activate the service. | ||
* | ||
* Used when adding certain capabilities of a service. | ||
* | ||
* Example: add_role, add_cap, etc. | ||
* | ||
* @return void | ||
*/ | ||
public function activate() : void; | ||
} |
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,29 @@ | ||
<?php | ||
/** | ||
* * File that holds Has_Deactivation interface | ||
* | ||
* @since 1.0.0 | ||
* @package Eightshift_Libs\Core | ||
*/ | ||
declare( strict_types=1 ); | ||
|
||
namespace Eightshift_Libs\Core; | ||
/** | ||
* Interface Has_Deactivation. | ||
* | ||
* An object that can be deactivated. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
interface Has_Deactivation { | ||
/** | ||
* Deactivate the service. | ||
* | ||
* Can be used to remove parts of the functionality defined by certain service. | ||
* | ||
* Examples: remove_role, remove_cap, flush_rewrite_rules etc. | ||
* | ||
* @return void | ||
*/ | ||
public function deactivate() : void; | ||
} |
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