Lw\Domain\Model\Wish\Wish::content PHP Method

content() public method

public content ( )
    public function content()
    {
        return $this->content;
    }

Usage Example

Beispiel #1
0
 public function makeWishNotBeingAnAggregate(WishId $wishId, $address, $content)
 {
     $newWish = new Wish($wishId, $this->id(), $address, $content);
     DomainEventPublisher::instance()->publish(new WishWasMade($newWish->id(), $newWish->userId(), $newWish->address(), $newWish->content()));
     return $newWish;
 }