kollapsminoriteten/wp-content/plugins/google-site-kit/third-party/google/apiclient-services-subscrib.../SubscribewithGoogle/Entitlement.php

134 lines
2.8 KiB
PHP
Raw Normal View History

2022-12-15 17:34:08 +01:00
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
2025-02-28 08:42:11 +01:00
namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle;
2022-12-15 17:34:08 +01:00
2025-02-28 08:42:11 +01:00
class Entitlement extends \Google\Site_Kit_Dependencies\Google\Collection
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
protected $collection_key = 'products';
2022-12-15 17:34:08 +01:00
/**
* @var string
*/
2025-02-28 08:42:11 +01:00
public $name;
2022-12-15 17:34:08 +01:00
/**
2025-02-28 08:42:11 +01:00
* @var string[]
2022-12-15 17:34:08 +01:00
*/
2025-02-28 08:42:11 +01:00
public $products;
2022-12-15 17:34:08 +01:00
/**
* @var string
*/
2025-02-28 08:42:11 +01:00
public $readerId;
2022-12-15 17:34:08 +01:00
/**
* @var string
*/
2025-02-28 08:42:11 +01:00
public $source;
2022-12-15 17:34:08 +01:00
/**
* @var string
*/
2025-02-28 08:42:11 +01:00
public $subscriptionToken;
2022-12-15 17:34:08 +01:00
/**
* @var string
*/
2025-02-28 08:42:11 +01:00
public $userId;
2022-12-15 17:34:08 +01:00
/**
* @param string
*/
2025-02-28 08:42:11 +01:00
public function setName($name)
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
$this->name = $name;
2022-12-15 17:34:08 +01:00
}
/**
* @return string
*/
2025-02-28 08:42:11 +01:00
public function getName()
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
return $this->name;
2022-12-15 17:34:08 +01:00
}
/**
2025-02-28 08:42:11 +01:00
* @param string[]
2022-12-15 17:34:08 +01:00
*/
2025-02-28 08:42:11 +01:00
public function setProducts($products)
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
$this->products = $products;
2022-12-15 17:34:08 +01:00
}
/**
2025-02-28 08:42:11 +01:00
* @return string[]
2022-12-15 17:34:08 +01:00
*/
2025-02-28 08:42:11 +01:00
public function getProducts()
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
return $this->products;
2022-12-15 17:34:08 +01:00
}
/**
* @param string
*/
2025-02-28 08:42:11 +01:00
public function setReaderId($readerId)
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
$this->readerId = $readerId;
2022-12-15 17:34:08 +01:00
}
/**
* @return string
*/
2025-02-28 08:42:11 +01:00
public function getReaderId()
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
return $this->readerId;
2022-12-15 17:34:08 +01:00
}
/**
* @param string
*/
2025-02-28 08:42:11 +01:00
public function setSource($source)
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
$this->source = $source;
2022-12-15 17:34:08 +01:00
}
/**
* @return string
*/
2025-02-28 08:42:11 +01:00
public function getSource()
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
return $this->source;
2022-12-15 17:34:08 +01:00
}
/**
* @param string
*/
2025-02-28 08:42:11 +01:00
public function setSubscriptionToken($subscriptionToken)
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
$this->subscriptionToken = $subscriptionToken;
2022-12-15 17:34:08 +01:00
}
/**
* @return string
*/
2025-02-28 08:42:11 +01:00
public function getSubscriptionToken()
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
return $this->subscriptionToken;
2022-12-15 17:34:08 +01:00
}
/**
* @param string
*/
2025-02-28 08:42:11 +01:00
public function setUserId($userId)
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
$this->userId = $userId;
2022-12-15 17:34:08 +01:00
}
/**
* @return string
*/
2025-02-28 08:42:11 +01:00
public function getUserId()
2022-12-15 17:34:08 +01:00
{
2025-02-28 08:42:11 +01:00
return $this->userId;
2022-12-15 17:34:08 +01:00
}
}
// Adding a class alias for backwards compatibility with the previous class name.
2025-02-28 08:42:11 +01:00
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Entitlement::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Entitlement');