| @@ 58-64 (lines=7) @@ | ||
| 55 | /** |
|
| 56 | * @param array $properties |
|
| 57 | */ |
|
| 58 | public function setProperty(array $properties) {
|
|
| 59 | foreach ($properties as $key => $value) {
|
|
| 60 | $property['@key'] = $key; |
|
| 61 | $property['@value'] = $value; |
|
| 62 | $this->property = $property; |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @return array |
|
| @@ 90-96 (lines=7) @@ | ||
| 87 | /** |
|
| 88 | * @param array $properties |
|
| 89 | */ |
|
| 90 | public function setProperties(array $properties) { |
|
| 91 | foreach ($properties as $key => $value) { |
|
| 92 | $property['@key'] = $key; |
|
| 93 | $property['@value'] = $value; |
|
| 94 | $this->properties['property'][] = $property; |
|
| 95 | } |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * @return string |
|