update
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* Class AccountProvisioningService
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2023 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin;
|
||||
use Google\Site_Kit_Dependencies\Google_Client;
|
||||
|
||||
/**
|
||||
* Class for Analytics account provisioning service of the GoogleAnalytics Admin API.
|
||||
*
|
||||
* @since 1.98.0
|
||||
* @access private
|
||||
* @ignore
|
||||
*/
|
||||
class AccountProvisioningService extends GoogleAnalyticsAdmin {
|
||||
|
||||
/**
|
||||
* Accounts resource instance.
|
||||
*
|
||||
* @var AccountsResource
|
||||
*/
|
||||
public $accounts;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.98.0
|
||||
*
|
||||
* @param Google_Client $client The client used to deliver requests.
|
||||
* @param string $rootUrl The root URL used for requests to the service.
|
||||
*/
|
||||
public function __construct( Google_Client $client, $rootUrl = null ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
parent::__construct( $client, $rootUrl ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
|
||||
$this->accounts = new AccountsResource(
|
||||
$this,
|
||||
$this->serviceName, // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
'accounts',
|
||||
array(
|
||||
'methods' => array(
|
||||
'provisionAccountTicket' => array(
|
||||
'path' => 'v1beta/accounts:provisionAccountTicket',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Class AccountsResource
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2023 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse;
|
||||
use Google\Site_Kit_Dependencies\Google\Service\Resource;
|
||||
|
||||
/**
|
||||
* Class for representing the Accounts resource of the GoogleAnalytics Admin API for provisioning.
|
||||
*
|
||||
* @since 1.98.0
|
||||
* @access private
|
||||
* @ignore
|
||||
*/
|
||||
class AccountsResource extends Resource {
|
||||
|
||||
/**
|
||||
* Requests a ticket for creating an account.
|
||||
*
|
||||
* @since 1.98.0
|
||||
*
|
||||
* @param Proxy_GoogleAnalyticsAdminProvisionAccountTicketRequest $post_body The post body to send.
|
||||
* @param array $opt_params Optional parameters.
|
||||
* @return GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse
|
||||
*/
|
||||
public function provisionAccountTicket( Proxy_GoogleAnalyticsAdminProvisionAccountTicketRequest $post_body, $opt_params = array() ) {
|
||||
$params = array( 'postBody' => $post_body );
|
||||
$params = array_merge( $params, $opt_params );
|
||||
|
||||
return $this->call(
|
||||
'provisionAccountTicket',
|
||||
array( $params ),
|
||||
GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse::class
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
// phpcs:ignoreFile
|
||||
|
||||
// Suppress coding standards checks for this file.
|
||||
// Reason: This file is a copy of the `GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings` class
|
||||
// from the Google API PHP Client library with a slight modification.
|
||||
|
||||
/**
|
||||
* Class EnhancedMeasurementSettingsModel
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2023 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
/**
|
||||
* The EnhancedMeasurementSettingsModel class.
|
||||
*/
|
||||
class EnhancedMeasurementSettingsModel extends \Google\Site_Kit_Dependencies\Google\Model {
|
||||
public $fileDownloadsEnabled;
|
||||
public $name;
|
||||
public $outboundClicksEnabled;
|
||||
public $pageChangesEnabled;
|
||||
public $scrollsEnabled;
|
||||
public $searchQueryParameter;
|
||||
public $siteSearchEnabled;
|
||||
public $streamEnabled;
|
||||
public $uriQueryParameter;
|
||||
public $videoEngagementEnabled;
|
||||
public function setFileDownloadsEnabled( $fileDownloadsEnabled ) {
|
||||
$this->fileDownloadsEnabled = $fileDownloadsEnabled;
|
||||
}
|
||||
public function getFileDownloadsEnabled() {
|
||||
return $this->fileDownloadsEnabled;
|
||||
}
|
||||
public function setName( $name ) {
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
public function setOutboundClicksEnabled( $outboundClicksEnabled ) {
|
||||
$this->outboundClicksEnabled = $outboundClicksEnabled;
|
||||
}
|
||||
public function getOutboundClicksEnabled() {
|
||||
return $this->outboundClicksEnabled;
|
||||
}
|
||||
public function setPageChangesEnabled( $pageChangesEnabled ) {
|
||||
$this->pageChangesEnabled = $pageChangesEnabled;
|
||||
}
|
||||
public function getPageChangesEnabled() {
|
||||
return $this->pageChangesEnabled;
|
||||
}
|
||||
public function setScrollsEnabled( $scrollsEnabled ) {
|
||||
$this->scrollsEnabled = $scrollsEnabled;
|
||||
}
|
||||
public function getScrollsEnabled() {
|
||||
return $this->scrollsEnabled;
|
||||
}
|
||||
public function setSearchQueryParameter( $searchQueryParameter ) {
|
||||
$this->searchQueryParameter = $searchQueryParameter;
|
||||
}
|
||||
public function getSearchQueryParameter() {
|
||||
return $this->searchQueryParameter;
|
||||
}
|
||||
public function setSiteSearchEnabled( $siteSearchEnabled ) {
|
||||
$this->siteSearchEnabled = $siteSearchEnabled;
|
||||
}
|
||||
public function getSiteSearchEnabled() {
|
||||
return $this->siteSearchEnabled;
|
||||
}
|
||||
public function setStreamEnabled( $streamEnabled ) {
|
||||
$this->streamEnabled = $streamEnabled;
|
||||
}
|
||||
public function getStreamEnabled() {
|
||||
return $this->streamEnabled;
|
||||
}
|
||||
public function setUriQueryParameter( $uriQueryParameter ) {
|
||||
$this->uriQueryParameter = $uriQueryParameter;
|
||||
}
|
||||
public function getUriQueryParameter() {
|
||||
return $this->uriQueryParameter;
|
||||
}
|
||||
public function setVideoEngagementEnabled( $videoEngagementEnabled ) {
|
||||
$this->videoEngagementEnabled = $videoEngagementEnabled;
|
||||
}
|
||||
public function getVideoEngagementEnabled() {
|
||||
return $this->videoEngagementEnabled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
/**
|
||||
* Class PropertiesAdSenseLinksService
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2024 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin;
|
||||
use Google\Site_Kit_Dependencies\Google_Client;
|
||||
use Google\Site_Kit_Dependencies\Google_Service_GoogleAnalyticsAdmin_PropertiesAdSenseLinks_Resource as PropertiesAdSenseLinksResource;
|
||||
|
||||
/**
|
||||
* Class for managing GA4 AdSense Links.
|
||||
*
|
||||
* @since 1.119.0
|
||||
* @access private
|
||||
* @ignore
|
||||
*/
|
||||
class PropertiesAdSenseLinksService extends GoogleAnalyticsAdmin {
|
||||
|
||||
/**
|
||||
* PropertiesAdSenseLinksResource instance.
|
||||
*
|
||||
* @var PropertiesAdSenseLinksResource
|
||||
*/
|
||||
public $properties_adSenseLinks; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.119.0
|
||||
*
|
||||
* @param Google_Client $client The client used to deliver requests.
|
||||
* @param string $rootUrl The root URL used for requests to the service.
|
||||
*/
|
||||
public function __construct( Google_Client $client, $rootUrl = null ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
parent::__construct( $client, $rootUrl ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
$this->version = 'v1alpha';
|
||||
|
||||
// phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
$this->properties_adSenseLinks = new PropertiesAdSenseLinksResource(
|
||||
$this,
|
||||
$this->serviceName, // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
'adSenseLinks',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => 'v1alpha/{+parent}/adSenseLinks',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'parent' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'delete' => array(
|
||||
'path' => 'v1alpha/{+name}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'get' => array(
|
||||
'path' => 'v1alpha/{+name}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'list' => array(
|
||||
'path' => 'v1alpha/{+parent}/adSenseLinks',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'parent' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Class PropertiesAudiencesService
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2024 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin;
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesAudiences as PropertiesAudiences;
|
||||
use Google\Site_Kit_Dependencies\Google_Client;
|
||||
|
||||
/**
|
||||
* Class for managing GA4 audiences.
|
||||
*
|
||||
* @since 1.120.0
|
||||
* @access private
|
||||
* @ignore
|
||||
*/
|
||||
class PropertiesAudiencesService extends GoogleAnalyticsAdmin {
|
||||
|
||||
/**
|
||||
* PropertiesAudiences instance.
|
||||
*
|
||||
* @var PropertiesAudiences
|
||||
*/
|
||||
public $properties_audiences;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.120.0
|
||||
*
|
||||
* @param Google_Client $client The client used to deliver requests.
|
||||
* @param string $rootUrl The root URL used for requests to the service.
|
||||
*/
|
||||
public function __construct( Google_Client $client, $rootUrl = null ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
parent::__construct( $client, $rootUrl ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
$this->version = 'v1alpha';
|
||||
|
||||
$this->properties_audiences = new PropertiesAudiences(
|
||||
$this,
|
||||
$this->serviceName, // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
'audiences',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => 'v1alpha/{+parent}/audiences',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'parent' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'list' => array(
|
||||
'path' => 'v1alpha/{+parent}/audiences',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'parent' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* Class PropertiesEnhancedMeasurementResource
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2023 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin\EnhancedMeasurementSettingsModel;
|
||||
use Google\Site_Kit_Dependencies\Google\Service\Resource;
|
||||
|
||||
/**
|
||||
* The "enhancedMeasurementSettings" collection of methods.
|
||||
*/
|
||||
class PropertiesEnhancedMeasurementResource extends Resource {
|
||||
|
||||
/**
|
||||
* Returns the singleton enhanced measurement settings for this web stream. Note
|
||||
* that the stream must enable enhanced measurement for these settings to take
|
||||
* effect. (webDataStreams.getEnhancedMeasurementSettings)
|
||||
*
|
||||
* @since 1.110.0
|
||||
*
|
||||
* @param string $name Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
|
||||
* Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings".
|
||||
* @param array $opt_params Optional parameters.
|
||||
* @return EnhancedMeasurementSettingsModel
|
||||
*/
|
||||
public function getEnhancedMeasurementSettings( $name, $opt_params = array() ) {
|
||||
$params = array( 'name' => $name );
|
||||
$params = array_merge( $params, $opt_params );
|
||||
return $this->call( 'getEnhancedMeasurementSettings', array( $params ), EnhancedMeasurementSettingsModel::class );
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the singleton enhanced measurement settings for this web stream. Note
|
||||
* that the stream must enable enhanced measurement for these settings to take
|
||||
* effect. (webDataStreams.updateEnhancedMeasurementSettings)
|
||||
*
|
||||
* @param string $name Output only. Resource name of this Data Stream. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
|
||||
* Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings".
|
||||
* @param EnhancedMeasurementSettingsModel $post_body The body of the request.
|
||||
* @param array $opt_params Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. The list of fields to be updated.
|
||||
* Field names must be in snake case (e.g., "field_to_update"). Omitted fields
|
||||
* will not be updated. To replace the entire entity, use one path with the
|
||||
* string "*" to match all fields.
|
||||
* @return EnhancedMeasurementSettingsModel
|
||||
*/
|
||||
public function updateEnhancedMeasurementSettings( $name, EnhancedMeasurementSettingsModel $post_body, $opt_params = array() ) {
|
||||
$params = array(
|
||||
'name' => $name,
|
||||
'postBody' => $post_body,
|
||||
);
|
||||
$params = array_merge( $params, $opt_params );
|
||||
return $this->call( 'updateEnhancedMeasurementSettings', array( $params ), EnhancedMeasurementSettingsModel::class );
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* Class PropertiesEnhancedMeasurementService
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2023 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin;
|
||||
use Google\Site_Kit_Dependencies\Google_Client;
|
||||
|
||||
/**
|
||||
* Class for managing GA4 datastream enhanced measurement settings.
|
||||
*
|
||||
* @since 1.110.0
|
||||
* @access private
|
||||
* @ignore
|
||||
*/
|
||||
class PropertiesEnhancedMeasurementService extends GoogleAnalyticsAdmin {
|
||||
|
||||
/**
|
||||
* PropertiesEnhancedMeasurementResource instance.
|
||||
*
|
||||
* @var PropertiesEnhancedMeasurementResource
|
||||
*/
|
||||
public $properties_enhancedMeasurements; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.110.0
|
||||
*
|
||||
* @param Google_Client $client The client used to deliver requests.
|
||||
* @param string $rootUrl The root URL used for requests to the service.
|
||||
*/
|
||||
public function __construct( Google_Client $client, $rootUrl = null ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
parent::__construct( $client, $rootUrl ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
$this->version = 'v1alpha';
|
||||
|
||||
// phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
$this->properties_enhancedMeasurements = new PropertiesEnhancedMeasurementResource(
|
||||
$this,
|
||||
$this->serviceName, // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
'enhancedMeasurements',
|
||||
array(
|
||||
'methods' => array(
|
||||
'getEnhancedMeasurementSettings' => array(
|
||||
'path' => 'v1alpha/{+name}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'updateEnhancedMeasurementSettings' => array(
|
||||
'path' => 'v1alpha/{+name}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'updateMask' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* Class Proxy_GoogleAnalyticsAdminProvisionAccountTicketRequest
|
||||
*
|
||||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin
|
||||
* @copyright 2023 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
* @link https://sitekit.withgoogle.com
|
||||
*/
|
||||
|
||||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin;
|
||||
|
||||
use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest;
|
||||
|
||||
/**
|
||||
* Class for representing a proxied account ticket provisioning request body.
|
||||
*
|
||||
* @since 1.98.0
|
||||
* @access private
|
||||
* @ignore
|
||||
*/
|
||||
class Proxy_GoogleAnalyticsAdminProvisionAccountTicketRequest extends GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest {
|
||||
/**
|
||||
* The site ID.
|
||||
*
|
||||
* @since 1.98.0
|
||||
* @var string
|
||||
*/
|
||||
public $site_id = '';
|
||||
|
||||
/**
|
||||
* The site secret.
|
||||
*
|
||||
* @since 1.98.0
|
||||
* @var string
|
||||
*/
|
||||
public $site_secret = '';
|
||||
|
||||
/**
|
||||
* Gets the site ID.
|
||||
*
|
||||
* @since 1.98.0
|
||||
*/
|
||||
public function getSiteId() {
|
||||
return $this->site_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the site ID.
|
||||
*
|
||||
* @since 1.98.0
|
||||
*
|
||||
* @param string $id The site id.
|
||||
*/
|
||||
public function setSiteId( $id ) {
|
||||
$this->site_id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the site secret.
|
||||
*
|
||||
* @since 1.98.0
|
||||
*/
|
||||
public function getSiteSecret() {
|
||||
return $this->site_secret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the site secret.
|
||||
*
|
||||
* @since 1.98.0
|
||||
*
|
||||
* @param string $secret The site secret.
|
||||
*/
|
||||
public function setSiteSecret( $secret ) {
|
||||
$this->site_secret = $secret;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user