Documentation

GetTagById

Use case for retrieving a tag by ID.

Tags
since
3.0.0

Table of Contents

Properties

$repository  : TagRepositoryInterface

Methods

__construct()  : mixed
Constructor.
execute()  : Tag|null
Execute the get tag by ID use case.
executeAsArray()  : array<string|int, mixed>|null
Get tag as array (backward compatible).
exists()  : bool
Check if a tag exists.

Properties

Methods

execute()

Execute the get tag by ID use case.

public execute(int $id) : Tag|null
Parameters
$id : int

Tag ID

Return values
Tag|null

Tag entity or null if not found

executeAsArray()

Get tag as array (backward compatible).

public executeAsArray(int $id) : array<string|int, mixed>|null
Parameters
$id : int

Tag ID

Return values
array<string|int, mixed>|null

Tag data or null if not found

exists()

Check if a tag exists.

public exists(int $id) : bool
Parameters
$id : int

Tag ID

Return values
bool

        
On this page

Search results