UpdateTag
in package
Use case for updating an existing tag.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : Tag
- Execute the update tag use case.
- executeWithResult() : Tag, error: ?string}
- Execute and return result.
Properties
$repository
private
TagRepositoryInterface
$repository
Methods
__construct()
Constructor.
public
__construct(TagRepositoryInterface $repository) : mixed
Parameters
- $repository : TagRepositoryInterface
-
Tag repository
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
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