Tags
2 weeks ago
Datapoint.php
2 weeks ago
Disconnected_Modules.php
2 weeks ago
Executable_Datapoint.php
10 months ago
Module.php
2 weeks ago
Module_Registry.php
5 years ago
Module_Settings.php
5 years ago
Module_Sharing_Settings.php
2 weeks ago
Module_With_Activation.php
4 years ago
Module_With_Assets.php
4 years ago
Module_With_Assets_Trait.php
1 year ago
Module_With_Data_Available_State.php
3 years ago
Module_With_Data_Available_State_Trait.php
2 years ago
Module_With_Deactivation.php
4 years ago
Module_With_Debug_Fields.php
2 weeks ago
Module_With_Inline_Data.php
2 weeks ago
Module_With_Owner.php
3 months ago
Module_With_Owner_Trait.php
4 years ago
Module_With_Persistent_Registration.php
1 year ago
Module_With_Scopes.php
5 years ago
Module_With_Scopes_Trait.php
1 year ago
Module_With_Service_Entity.php
2 weeks ago
Module_With_Settings.php
5 years ago
Module_With_Settings_Trait.php
2 weeks ago
Module_With_Tag.php
2 months ago
Module_With_Tag_Trait.php
1 year ago
Modules.php
2 weeks ago
Permission_Aware_Datapoint.php
2 weeks ago
REST_Dashboard_Sharing_Controller.php
1 year ago
REST_Modules_Controller.php
2 weeks ago
Shareable_Datapoint.php
2 weeks ago
Module_With_Owner.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Interface Google\Site_Kit\Core\Modules\Module_With_Owner |
| 4 | * |
| 5 | * @package Google\Site_Kit |
| 6 | * @copyright 2021 Google LLC |
| 7 | * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 |
| 8 | * @link https://sitekit.withgoogle.com |
| 9 | */ |
| 10 | |
| 11 | namespace Google\Site_Kit\Core\Modules; |
| 12 | |
| 13 | use Google\Site_Kit\Core\Authentication\Clients\OAuth_Client; |
| 14 | |
| 15 | /** |
| 16 | * Interface for a module that includes an owner. |
| 17 | * |
| 18 | * @since 1.16.0 |
| 19 | * @access private |
| 20 | * @ignore |
| 21 | */ |
| 22 | interface Module_With_Owner { |
| 23 | |
| 24 | /** |
| 25 | * Gets an owner ID for the module. |
| 26 | * |
| 27 | * @since 1.16.0 |
| 28 | * |
| 29 | * @return int Owner ID. |
| 30 | */ |
| 31 | public function get_owner_id(); |
| 32 | |
| 33 | /** |
| 34 | * Gets the OAuth_Client instance for the module owner. |
| 35 | * |
| 36 | * @since 1.174.0 |
| 37 | * |
| 38 | * @return OAuth_Client OAuth_Client instance. |
| 39 | */ |
| 40 | public function get_owner_oauth_client(); |
| 41 | } |
| 42 |