Documentation

UpdateTag

Use case for updating an existing tag.

Tags
since
3.0.0

Table of Contents

Properties

$repository  : TagRepositoryInterface

Methods

__construct()  : mixed
Constructor.
execute()  : Tag
Execute the update tag use case.
executeWithResult()  : Tag, error: ?string}
Execute and return result.

Properties

Methods

execute()

Execute the update tag use case.

public execute(int $id, string $text, string $comment) : Tag
Parameters
$id : int

Tag ID

$text : string

New tag text

$comment : string

New tag comment

Tags
throws
InvalidArgumentException

If tag not found or validation fails

Return values
Tag

The updated tag entity

executeWithResult()

Execute and return result.

public executeWithResult(int $id, string $text, string $comment) : Tag, error: ?string}
Parameters
$id : int

Tag ID

$text : string

New tag text

$comment : string

New tag comment

Return values
Tag, error: ?string}

Result


        
On this page

Search results