class TagTranslation extends AbstractEntity (View source)

Translated representation of Tags.

It stores their name and description.

Properties

protected $id from AbstractEntity
protected $name
protected $description
protected Tag $tag
protected Translation $translation

Methods

int
getId()

No description

setId(int $id)

No description

string
getName()

No description

$this
setName(string $name)

No description

string
getDescription()

No description

$this
setDescription(string $description)

No description

__construct(Tag $original, Translation $translation)

Create a new TagTranslation with its origin Tag and Translation.

Tag
getTag()

Gets the value of tag.

setTag(Tag $tag)

Sets the value of tag.

getTranslation()

Gets the value of translation.

setTranslation(Translation $translation)

Sets the value of translation.

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

string getName()

Return Value

string

$this setName(string $name)

Parameters

string $name

Return Value

$this

string getDescription()

Return Value

string

$this setDescription(string $description)

Parameters

string $description

Return Value

$this

__construct(Tag $original, Translation $translation)

Create a new TagTranslation with its origin Tag and Translation.

Parameters

Tag $original
Translation $translation

Tag getTag()

Gets the value of tag.

Return Value

Tag

TagTranslation setTag(Tag $tag)

Sets the value of tag.

Parameters

Tag $tag the tag

Return Value

TagTranslation

Translation getTranslation()

Gets the value of translation.

Return Value

Translation

TagTranslation setTranslation(Translation $translation)

Sets the value of translation.

Parameters

Translation $translation the translation

Return Value

TagTranslation