summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object/Properties.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/SSRS/Object/Properties.php')
-rw-r--r--library/SSRS/Object/Properties.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/library/SSRS/Object/Properties.php b/library/SSRS/Object/Properties.php
index 6765450..f4e9572 100644
--- a/library/SSRS/Object/Properties.php
+++ b/library/SSRS/Object/Properties.php
@@ -1,14 +1,16 @@
<?php
-class SSRS_Object_Properties {
+namespace SSRS\Object;
+
+class Properties {
protected $_properties = array();
public function __construct($properties = array()) {
$this->addProperties($properties);
}
-
- public function __get($name){
+
+ public function __get($name) {
return $this->getProperty($name);
}
@@ -18,9 +20,9 @@ class SSRS_Object_Properties {
*/
public function addProperties(array $properties) {
foreach ($properties AS $key => $value) {
- if (is_object($value) && isset($value->Name)) {
+ if (is_object($value) && isset($value->Name)) {
$key = $value->Name;
- $value = isset($value->Value)? $value->Value : null;
+ $value = isset($value->Value) ? $value->Value : null;
}
$this->addProperty($key, $value);
@@ -55,4 +57,4 @@ class SSRS_Object_Properties {
return array_key_exists($key, $this->_properties) ? $this->_properties[$key] : null;
}
-} \ No newline at end of file
+}