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

contentTypeTitle

private \Qubus\ValueObjects\StringLiteral\StringLiteral $contentTypeTitle

contentTypeSlug

private \Qubus\ValueObjects\StringLiteral\StringLiteral $contentTypeSlug

contentTypeDescription

private \Qubus\ValueObjects\StringLiteral\StringLiteral $contentTypeDescription

Methods

withData

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

contentTypeId

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

Throws:


contentTypeTitle

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

contentTypeSlug

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

contentTypeDescription

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