• Full name: \App\Domain\Content\Event\ContentBodyWasChanged
  • Parent class: AggregateChanged
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

id

private \App\Domain\Content\ValueObject\ContentId $id

body

private \Qubus\ValueObjects\StringLiteral\StringLiteral $body

Methods

withData

public static withData(\App\Domain\Content\ValueObject\ContentId $id, \Qubus\ValueObjects\StringLiteral\StringLiteral $body): \App\Domain\Content\Event\ContentBodyWasChanged|\Codefy\Domain\EventSourcing\DomainEvent|\Codefy\Domain\EventSourcing\AggregateChanged
  • This method is static. Parameters:
Parameter Type Description
$id \App\Domain\Content\ValueObject\ContentId
$body \Qubus\ValueObjects\StringLiteral\StringLiteral

contentId

public contentId(): \App\Domain\Content\ValueObject\ContentId

Throws:


contentBody

public contentBody(): \Qubus\ValueObjects\StringLiteral\StringLiteral