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
protected ArrayCollection|null $tagTranslationDocuments

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.

ArrayCollection|null
getTagTranslationDocuments()

No description

setTagTranslationDocuments(ArrayCollection|null $tagTranslationDocuments)

No description

array
getDocuments()

No description

__clone()

After clone method.

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

ArrayCollection|null getTagTranslationDocuments()

Return Value

ArrayCollection|null

TagTranslation setTagTranslationDocuments(ArrayCollection|null $tagTranslationDocuments)

Parameters

ArrayCollection|null $tagTranslationDocuments

Return Value

TagTranslation

array getDocuments()

Return Value

array

__clone()

After clone method.

Be careful not to persist nor flush current entity after calling clone as it empties its relations.