Last active
June 23, 2019 03:21
-
-
Save shin1x1/7b832f8f2f3764023e6c120be17fffed to your computer and use it in GitHub Desktop.
repository-with-laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Domain\Repository; | |
use Acme\Domain\Model\User; | |
use Acme\Domain\Model\UserId; | |
interface UserRepository | |
{ | |
/** | |
* @param UserId $id | |
* @return User | |
*/ | |
public function findById(UserId $id): User; | |
/** | |
* @param User $user | |
* @return UserId | |
*/ | |
public function store(User $user): UserId; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment