glpi / src / plugins / vigilo / Vigilo / VigiloItem.php @ fbdbbd6a
History | View | Annotate | Download (334 Bytes)
1 |
<?php
|
---|---|
2 |
|
3 |
class VigiloItem extends VigiloXml |
4 |
{ |
5 |
protected $value; |
6 |
|
7 |
public function __construct($value) |
8 |
{ |
9 |
$this->value = $value; |
10 |
} |
11 |
|
12 |
public function getValue() |
13 |
{ |
14 |
return $this->value; |
15 |
} |
16 |
|
17 |
public function __toString() |
18 |
{ |
19 |
return self::sprintf('<item>%s</item>', $this->value); |
20 |
} |
21 |
} |