@@ 8-51 (lines=44) @@ | ||
5 | /** |
|
6 | * Class representing DigestValue |
|
7 | */ |
|
8 | class DigestValue |
|
9 | { |
|
10 | ||
11 | /** |
|
12 | * @property mixed $__value |
|
13 | */ |
|
14 | private $__value = null; |
|
15 | ||
16 | /** |
|
17 | * Construct |
|
18 | * |
|
19 | * @param mixed $value |
|
20 | */ |
|
21 | public function __construct($value) |
|
22 | { |
|
23 | $this->value($value); |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * Gets or sets the inner value |
|
28 | * |
|
29 | * @param mixed $value |
|
30 | * @return mixed |
|
31 | */ |
|
32 | public function value() |
|
33 | { |
|
34 | if ($args = func_get_args()) { |
|
35 | $this->__value = $args[0]; |
|
36 | } |
|
37 | return $this->__value; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * Gets a string value |
|
42 | * |
|
43 | * @return string |
|
44 | */ |
|
45 | public function __toString() |
|
46 | { |
|
47 | return strval($this->__value); |
|
48 | } |
|
49 | ||
50 | ||
51 | } |
|
52 | ||
53 |
@@ 8-51 (lines=44) @@ | ||
5 | /** |
|
6 | * Class representing KeyName |
|
7 | */ |
|
8 | class KeyName |
|
9 | { |
|
10 | ||
11 | /** |
|
12 | * @property string $__value |
|
13 | */ |
|
14 | private $__value = null; |
|
15 | ||
16 | /** |
|
17 | * Construct |
|
18 | * |
|
19 | * @param string $value |
|
20 | */ |
|
21 | public function __construct($value) |
|
22 | { |
|
23 | $this->value($value); |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * Gets or sets the inner value |
|
28 | * |
|
29 | * @param string $value |
|
30 | * @return string |
|
31 | */ |
|
32 | public function value() |
|
33 | { |
|
34 | if ($args = func_get_args()) { |
|
35 | $this->__value = $args[0]; |
|
36 | } |
|
37 | return $this->__value; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * Gets a string value |
|
42 | * |
|
43 | * @return string |
|
44 | */ |
|
45 | public function __toString() |
|
46 | { |
|
47 | return strval($this->__value); |
|
48 | } |
|
49 | ||
50 | ||
51 | } |
|
52 | ||
53 |
@@ 8-51 (lines=44) @@ | ||
5 | /** |
|
6 | * Class representing MgmtData |
|
7 | */ |
|
8 | class MgmtData |
|
9 | { |
|
10 | ||
11 | /** |
|
12 | * @property string $__value |
|
13 | */ |
|
14 | private $__value = null; |
|
15 | ||
16 | /** |
|
17 | * Construct |
|
18 | * |
|
19 | * @param string $value |
|
20 | */ |
|
21 | public function __construct($value) |
|
22 | { |
|
23 | $this->value($value); |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * Gets or sets the inner value |
|
28 | * |
|
29 | * @param string $value |
|
30 | * @return string |
|
31 | */ |
|
32 | public function value() |
|
33 | { |
|
34 | if ($args = func_get_args()) { |
|
35 | $this->__value = $args[0]; |
|
36 | } |
|
37 | return $this->__value; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * Gets a string value |
|
42 | * |
|
43 | * @return string |
|
44 | */ |
|
45 | public function __toString() |
|
46 | { |
|
47 | return strval($this->__value); |
|
48 | } |
|
49 | ||
50 | ||
51 | } |
|
52 | ||
53 |