TagService

Namespace

IO\Services

Properties
Type Name Description

TagRepositoryContract

$tagRepository

Methods
public __construct($tagRepository)

TagService constructor.

Parameters

Type

Name

Description

TagRepositoryContract

$tagRepository

public getTagById($tagId):Tag

Get a tag by its id

Parameters

Type

Name

Description

int

$tagId

The id of the tag

public getTagName($tagId, $lang = null):string

Get the name of a tag for a specific language

Parameters

Type

Name

Description

int

$tagId

The id of the tag

string

$lang

The language to get the name in.