• Full name: \App\Domain\Content\Event\ContentTypeWasChanged
  • 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

type

private \Qubus\ValueObjects\StringLiteral\StringLiteral $type

Methods

withData

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

contentId

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

Throws:


contentTypeSlug

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