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

Properties

contentTypeId

private \App\Domain\ContentType\ValueObject\ContentTypeId $contentTypeId

contentTypeSlug

private \Qubus\ValueObjects\StringLiteral\StringLiteral $contentTypeSlug

Methods

withData

public static withData(\App\Domain\ContentType\ValueObject\ContentTypeId $contentTypeId, \Qubus\ValueObjects\StringLiteral\StringLiteral $contentTypeSlug): \App\Domain\ContentType\Event\ContentTypeSlugWasChanged|\Codefy\Domain\EventSourcing\DomainEvent|\Codefy\Domain\EventSourcing\AggregateChanged
  • This method is static. Parameters:
Parameter Type Description
$contentTypeId \App\Domain\ContentType\ValueObject\ContentTypeId
$contentTypeSlug \Qubus\ValueObjects\StringLiteral\StringLiteral

contentTypeId

public contentTypeId(): \App\Domain\ContentType\ValueObject\ContentTypeId

Throws:


contentTypeSlug

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