• Full name: \App\Domain\Content\Dto\UpdateContentData
  • This class is marked as final and can't be subclassed
  • This class implements: DataTransformer
  • This class is a Final class

Properties

id

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

title

public \Qubus\ValueObjects\StringLiteral\StringLiteral $title

slug

public \Qubus\ValueObjects\StringLiteral\StringLiteral $slug

body

public \Qubus\ValueObjects\StringLiteral\StringLiteral $body

author

public \App\Domain\User\ValueObject\UserId $author

type

public \Qubus\ValueObjects\StringLiteral\StringLiteral $type

public \Qubus\ValueObjects\Number\IntegerNumber $sidebar

showInMenu

public \Qubus\ValueObjects\Number\IntegerNumber $showInMenu

showInSearch

public \Qubus\ValueObjects\Number\IntegerNumber $showInSearch

featuredImage

public \Qubus\ValueObjects\StringLiteral\StringLiteral $featuredImage

attribute

public \App\Shared\ValueObject\ArrayLiteral $attribute

status

public \Qubus\ValueObjects\StringLiteral\StringLiteral $status

published

public \DateTimeInterface $published

publishedGmt

public \DateTimeInterface $publishedGmt

modified

public \DateTimeInterface $modified

modifiedGmt

public \DateTimeInterface $modifiedGmt

parent

public ?\App\Domain\Content\ValueObject\ContentId $parent

Methods

__construct

private __construct(\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, \App\Shared\ValueObject\ArrayLiteral $attribute, \Qubus\ValueObjects\StringLiteral\StringLiteral $status, \DateTimeInterface $published, \DateTimeInterface $publishedGmt, \DateTimeInterface $modified, \DateTimeInterface $modifiedGmt, ?\App\Domain\Content\ValueObject\ContentId $parent = null): mixed

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
$attribute \App\Shared\ValueObject\ArrayLiteral
$status \Qubus\ValueObjects\StringLiteral\StringLiteral
$published \DateTimeInterface
$publishedGmt \DateTimeInterface
$modified \DateTimeInterface
$modifiedGmt \DateTimeInterface
$parent ?\App\Domain\Content\ValueObject\ContentId

fromValidatedData

public static fromValidatedData(\Codefy\Framework\Validation\DataValidator $data): \Codefy\Framework\Dto\DataTransformer
  • This method is static. Parameters:
Parameter Type Description
$data \Codefy\Framework\Validation\DataValidator

Throws: