mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
Improved public API in ApiKey entity, reducing anemic model
This commit is contained in:
@@ -18,6 +18,9 @@ interface ApiKeyServiceInterface
|
||||
*/
|
||||
public function disable(string $key): ApiKey;
|
||||
|
||||
/**
|
||||
* @return ApiKey[]
|
||||
*/
|
||||
public function listKeys(bool $enabledOnly = false): array;
|
||||
|
||||
public function getByKey(string $key): ?ApiKey;
|
||||
|
||||
Reference in New Issue
Block a user