Files
piratepoet/mailpoet/lib/Util/License/License.php
Jan Jakes 9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00

21 lines
397 B
PHP

<?php
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();
}
}