- Full name:
\App\Domain\Content\Event\ContentWasCreated - Parent class:
AggregateChanged
Properties
id
title
slug
body
author
type
parent
sidebar
showInMenu
showInSearch
featuredImage
attribute
status
created
createdGmt
published
publishedGmt
Methods
withData
public static withData(\App\Domain\Content\ValueObject\ContentId $id, \Qubus\ValueObjects\StringLiteral\StringLiteral $title, \Qubus\ValueObjects\StringLiteral\StringLiteral $slug, \Qubus\ValueObjects\StringLiteral\StringLiteral $body, \App\Domain\User\ValueObject\UserId $author, \Qubus\ValueObjects\StringLiteral\StringLiteral $type, \Qubus\ValueObjects\Number\IntegerNumber $sidebar, \Qubus\ValueObjects\Number\IntegerNumber $showInMenu, \Qubus\ValueObjects\Number\IntegerNumber $showInSearch, \Qubus\ValueObjects\StringLiteral\StringLiteral $featuredImage, \Qubus\ValueObjects\StringLiteral\StringLiteral $status, \DateTimeInterface $created, \DateTimeInterface $createdGmt, \DateTimeInterface $published, \DateTimeInterface $publishedGmt, \App\Shared\ValueObject\ArrayLiteral $attribute, ?\App\Domain\Content\ValueObject\ContentId $parent = null): \App\Domain\Content\Event\ContentWasCreated|\Codefy\Domain\EventSourcing\DomainEvent|\Codefy\Domain\EventSourcing\AggregateChanged
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$id |
\App\Domain\Content\ValueObject\ContentId | |
$title |
\Qubus\ValueObjects\StringLiteral\StringLiteral | |
$slug |
\Qubus\ValueObjects\StringLiteral\StringLiteral | |
$body |
\Qubus\ValueObjects\StringLiteral\StringLiteral | |
$author |
\App\Domain\User\ValueObject\UserId | |
$type |
\Qubus\ValueObjects\StringLiteral\StringLiteral | |
$sidebar |
\Qubus\ValueObjects\Number\IntegerNumber | |
$showInMenu |
\Qubus\ValueObjects\Number\IntegerNumber | |
$showInSearch |
\Qubus\ValueObjects\Number\IntegerNumber | |
$featuredImage |
\Qubus\ValueObjects\StringLiteral\StringLiteral | |
$status |
\Qubus\ValueObjects\StringLiteral\StringLiteral | |
$created |
\DateTimeInterface | |
$createdGmt |
\DateTimeInterface | |
$published |
\DateTimeInterface | |
$publishedGmt |
\DateTimeInterface | |
$attribute |
\App\Shared\ValueObject\ArrayLiteral | |
$parent |
?\App\Domain\Content\ValueObject\ContentId |
contentId
Throws:
contentTitle
contentSlug
contentBody
contentAuthor
Throws:
contentTypeSlug
contentParent
Throws:
contentSidebar
Throws:
contentShowInMenu
Throws:
contentShowInSearch
Throws: