Refactor CounterRepository

This commit is contained in:
antonkomarev
2020-07-12 12:43:51 +03:00
parent b33e9d4fcf
commit bf7b636702
3 changed files with 29 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ namespace Contracts\Komarev\GitHubProfileViewsCounter;
interface CounterRepositoryInterface
{
public function getCount(): int;
public function getCountByUsername(string $username): int;
public function incrementCount(): void;
public function incrementCountByUsername(string $username): void;
}