• Full name: \App\Infrastructure\Services\Content\ContentService
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

event

private \Psr\EventDispatcher\EventDispatcherInterface $event

Methods

__construct

public __construct(\Psr\EventDispatcher\EventDispatcherInterface $event): mixed

Parameters:

Parameter Type Description
$event \Psr\EventDispatcher\EventDispatcherInterface

findType

public findType(string $type): \App\Domain\ContentType\Model\ContentType

Parameters:

Parameter Type Description
$type string

Throws:


findById

public findById(string $id): \App\Domain\Content\Model\Content

Parameters:

Parameter Type Description
$id string

Throws:


createContent

public createContent(\App\Domain\Content\Validator\StoreContentValidator $data): string

Parameters:

Parameter Type Description
$data \App\Domain\Content\Validator\StoreContentValidator

Throws:


updateContent

public updateContent(\App\Domain\Content\Validator\UpdateContentValidator $data): void

Parameters:

Parameter Type Description
$data \App\Domain\Content\Validator\UpdateContentValidator

removeFeaturedImage

public removeFeaturedImage(\App\Domain\Content\Validator\FeaturedImageValidator $data): void

Parameters:

Parameter Type Description
$data \App\Domain\Content\Validator\FeaturedImageValidator

Throws:


deleteContent

public deleteContent(\App\Domain\Content\Validator\DestroyContentValidator $data): void

Parameters:

Parameter Type Description
$data \App\Domain\Content\Validator\DestroyContentValidator

Throws: