mirror of
https://github.com/koel/koel
synced 2024-12-19 00:53:05 +00:00
36 lines
827 B
PHP
36 lines
827 B
PHP
<?php
|
|
|
|
namespace App\Services\License;
|
|
|
|
use App\Exceptions\MethodNotImplementedException;
|
|
use App\Models\License;
|
|
use App\Services\License\Contracts\LicenseServiceInterface;
|
|
use App\Values\LicenseStatus;
|
|
|
|
class CommunityLicenseService implements LicenseServiceInterface
|
|
{
|
|
public function activate(string $key): License
|
|
{
|
|
throw MethodNotImplementedException::method(__METHOD__);
|
|
}
|
|
|
|
public function deactivate(License $license): void
|
|
{
|
|
throw MethodNotImplementedException::method(__METHOD__);
|
|
}
|
|
|
|
public function getStatus(bool $checkCache = true): LicenseStatus
|
|
{
|
|
throw MethodNotImplementedException::method(__METHOD__);
|
|
}
|
|
|
|
public function isPlus(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function isCommunity(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|