Add Username Value Object (#6)

Add Username Value Object
This commit is contained in:
Anton Komarev
2020-07-18 20:32:06 +03:00
committed by GitHub
parent 214f1bf950
commit f05e2394be
8 changed files with 129 additions and 17 deletions

View File

@@ -13,9 +13,11 @@ declare(strict_types=1);
namespace Contracts\Komarev\GitHubProfileViewsCounter;
use Komarev\GitHubProfileViewsCounter\Username;
interface CounterRepositoryInterface
{
public function getViewsCountByUsername(string $username): int;
public function getViewsCountByUsername(Username $username): int;
public function addViewByUsername(string $username): void;
public function addViewByUsername(Username $username): void;
}