use constants for tag
Cette révision appartient à :
Parent
2a0ad3d74c
révision
ebbd7300e7
@ -31,29 +31,29 @@ class Tag extends ArrayCollection
|
|||||||
|
|
||||||
public function getId(): string
|
public function getId(): string
|
||||||
{
|
{
|
||||||
return $this->get('tagid');
|
return $this->get(TagEndpoint::ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(): string
|
public function getName(): string
|
||||||
{
|
{
|
||||||
return $this->get('name');
|
return $this->get(TagEndpoint::NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setName(string $name): void
|
public function setName(string $name): void
|
||||||
{
|
{
|
||||||
$this->set('name', $name);
|
$this->set(TagEndpoint::NAME, $name);
|
||||||
|
|
||||||
// use persist method to send to Klicktipp
|
// use persist method to send to Klicktipp
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getText(): string
|
public function getText(): string
|
||||||
{
|
{
|
||||||
return $this->get('text');
|
return $this->get(TagEndpoint::TEXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setText(string $text): void
|
public function setText(string $text): void
|
||||||
{
|
{
|
||||||
$this->set('text', $text);
|
$this->set(TagEndpoint::TEXT, $text);
|
||||||
|
|
||||||
// use persist method to send to Klicktipp
|
// use persist method to send to Klicktipp
|
||||||
}
|
}
|
||||||
|
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur