glpi / src / Vigilo / VigiloItem.php @ 077e4de7
History | View | Annotate | Download (334 Bytes)
1 | bef4271a | Thibault Louet | <?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 | a5c9df40 | Thibault Louet | } |