Lw\Domain\Model\User\User::makeWishNoAggregateVersion PHP Method

makeWishNoAggregateVersion() public method

public makeWishNoAggregateVersion ( WishId $wishId, $address, $content )
$wishId Lw\Domain\Model\Wish\WishId
    public function makeWishNoAggregateVersion(WishId $wishId, $address, $content)
    {
        return new Wish($wishId, $this->id(), $address, $content);
    }

Usage Example

 private function setupWishRepository()
 {
     $this->wishRepository = new InMemoryWishRepository();
     $this->dummyWish = $this->dummyUser->makeWishNoAggregateVersion($this->wishRepository->nextIdentity(), '*****@*****.**', 'content');
     $this->wishRepository->add($this->dummyWish);
 }