• Full name: \App\Domain\Content\Event\ContentAttributeWasChanged
  • Parent class: AggregateChanged

Properties

id

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

attribute

private \App\Shared\ValueObject\ArrayLiteral $attribute

Methods

withData

public static withData(\App\Domain\Content\ValueObject\ContentId $id, \App\Shared\ValueObject\ArrayLiteral $attribute): \App\Domain\Content\Event\ContentAttributeWasChanged|\Codefy\Domain\EventSourcing\DomainEvent|\Codefy\Domain\EventSourcing\AggregateChanged
  • This method is static. Parameters:
Parameter Type Description
$id \App\Domain\Content\ValueObject\ContentId
$attribute \App\Shared\ValueObject\ArrayLiteral

contentId

public contentId(): \App\Domain\Content\ValueObject\ContentId|\Codefy\Domain\Aggregate\AggregateId

Throws:


contentAttribute

public contentAttribute(): \App\Shared\ValueObject\ArrayLiteral