- Full name:
\App\Domain\Content\Dto\StoreContentData - This class is marked as final and can't be subclassed
- This class implements:
DataTransformer - This class is a Final class
Properties
id
title
slug
body
author
type
sidebar
showInMenu
showInSearch
featuredImage
attribute
status
created
createdGmt
published
publishedGmt
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 $created, \DateTimeInterface $createdGmt, \DateTimeInterface $published, \DateTimeInterface $publishedGmt, ?\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 | |
$created |
\DateTimeInterface | |
$createdGmt |
\DateTimeInterface | |
$published |
\DateTimeInterface | |
$publishedGmt |
\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: