2024-01-09 18:34:40 +00:00
|
|
|
<?php
|
|
|
|
|
2024-01-26 11:06:57 +00:00
|
|
|
namespace Tests\Fakes;
|
2024-01-09 18:34:40 +00:00
|
|
|
|
|
|
|
use App\Exceptions\MethodNotImplementedException;
|
|
|
|
use App\Models\License;
|
2024-01-26 11:06:57 +00:00
|
|
|
use App\Services\License\LicenseServiceInterface;
|
2024-01-09 18:34:40 +00:00
|
|
|
use App\Values\LicenseStatus;
|
|
|
|
|
|
|
|
class FakePlusLicenseService implements LicenseServiceInterface
|
|
|
|
{
|
|
|
|
public function activate(string $key): License
|
|
|
|
{
|
|
|
|
throw MethodNotImplementedException::method(__METHOD__);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function deactivate(License $license): void
|
|
|
|
{
|
|
|
|
throw MethodNotImplementedException::method(__METHOD__);
|
|
|
|
}
|
|
|
|
|
2024-01-10 23:25:22 +00:00
|
|
|
public function getStatus(bool $checkCache = true): LicenseStatus
|
2024-01-09 18:34:40 +00:00
|
|
|
{
|
|
|
|
throw MethodNotImplementedException::method(__METHOD__);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isPlus(): bool
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isCommunity(): bool
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|