PHP Interface Lw\Domain\Model\Wish\WishRepository

Mostrar archivo Open project: dddinphp/last-wishes Interface Usage Examples

Public Methods

Method Description
add ( Wish $wish )
nextIdentity ( ) : WishId
ofId ( WishId $wishId ) : Wish
ofUserId ( UserId $userId ) : Wish[]
remove ( Wish $wish )

Method Details

add() public method

public add ( Wish $wish )
$wish Wish

nextIdentity() public method

public nextIdentity ( ) : WishId
return WishId

ofId() public method

public ofId ( WishId $wishId ) : Wish
$wishId WishId
return Wish

ofUserId() public method

public ofUserId ( UserId $userId ) : Wish[]
$userId Lw\Domain\Model\User\UserId
return Wish[]

remove() public method

public remove ( Wish $wish )
$wish Wish