2019-05-10 08:21:41 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-05-10 08:21:41 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-05-10 08:21:41 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Support\Subscription;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 17.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ISubscription {
|
|
|
|
|
/**
|
|
|
|
|
* Indicates if a valid subscription is available
|
|
|
|
|
*
|
|
|
|
|
* @since 17.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function hasValidSubscription(): bool;
|
2019-06-11 10:08:26 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Indicates if the subscription has extended support
|
|
|
|
|
*
|
|
|
|
|
* @since 17.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function hasExtendedSupport(): bool;
|
2020-10-08 05:41:16 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Indicates if a hard user limit is reached and no new users should be created
|
|
|
|
|
*
|
|
|
|
|
* @since 21.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function isHardUserLimitReached(): bool;
|
2019-05-10 08:21:41 -04:00
|
|
|
}
|