Skip to content

Instantly share code, notes, and snippets.

@shin1x1
Last active June 23, 2019 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shin1x1/7b832f8f2f3764023e6c120be17fffed to your computer and use it in GitHub Desktop.
Save shin1x1/7b832f8f2f3764023e6c120be17fffed to your computer and use it in GitHub Desktop.
repository-with-laravel
<?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