Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function __get($name) |
||
52 | { |
||
53 | if (empty($this->_payload[$name])) { |
||
54 | throw new InvalidArgumentException(sprintf("Payload parameter '%s' is not defined", $name)); |
||
55 | } |
||
56 | |||
57 | return $this->_payload[$name]; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param string $name |
||
62 | * @param mixed $value |
||
63 | */ |
||
64 | public function __set($name, $value) |
||
65 | { |
||
66 | $this->_payload[$name] = htmlspecialchars($value); |
||
67 | } |
||
68 | |||
77 |