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

makeWishAggregateVersion() public method

public makeWishAggregateVersion ( $address, $content )
    public function makeWishAggregateVersion($address, $content)
    {
        if (count($this->wishes) >= self::MAX_WISHES) {
            throw new NoMoreWishesAllowedException();
        }
        $this->wishes[] = new Wish(new WishId(), $this->id(), $address, $content);
    }