Files
piratepoet/mailpoet/lib/Util/License/License.php
2022-11-29 15:04:09 +01:00

21 lines
491 B
PHP

<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Util\License;
class License {
const FREE_PREMIUM_SUBSCRIBERS_LIMIT = 1000;
public static function getLicense($license = false) {
if (!$license) {
$license = defined('MAILPOET_PREMIUM_LICENSE') ?
MAILPOET_PREMIUM_LICENSE :
false;
}
return $license;
}
public function hasLicense(): bool {
return (bool)self::getLicense();
}
}