Skip to content

Commit

Permalink
Enforce Identity::create() factory method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinier Kip committed Oct 30, 2014
1 parent a11b445 commit 0d3201c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Surfnet/Stepup/Identity/Api/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
namespace Surfnet\Stepup\Identity\Api;

use Broadway\Domain\AggregateRoot;
use Surfnet\Stepup\Identity\Value\IdentityId;

interface Identity extends AggregateRoot
{
/**
* @param IdentityId $id
* @return Identity
*/
public static function create(IdentityId $id);
}

0 comments on commit 0d3201c

Please sign in to comment.