Documentation

CreateTag

Use case for creating a new tag.

Tags
since
3.0.0

Table of Contents

Properties

$repository  : TagRepositoryInterface

Methods

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

Properties

Methods

execute()

Execute the create tag use case.

public execute(string $text[, string $comment = '' ]) : Tag
Parameters
$text : string

Tag text (max 20 chars, no spaces/commas)

$comment : string = ''

Tag comment (max 200 chars)

Tags
throws
InvalidArgumentException

If validation fails

throws
mysqli_sql_exception

If duplicate tag

Return values
Tag

The created tag entity

executeWithResult()

Execute and return result.

public executeWithResult(string $text[, string $comment = '' ]) : Tag, error: ?string}
Parameters
$text : string

Tag text

$comment : string = ''

Tag comment

Return values
Tag, error: ?string}

Result


        
On this page

Search results