summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object/Properties.php
diff options
context:
space:
mode:
authorarron <arron@copiadigital.co.uk>2013-12-05 18:28:08 +0000
committerarron <arron@copiadigital.co.uk>2013-12-05 18:28:08 +0000
commite0fd2e51a5546d0d85cf249a6ebf45f9e06e6017 (patch)
treeb7f17446bd2cbdb7dda26d04cbdc65679c8557f2 /library/SSRS/Object/Properties.php
parente4ee94dbc8be64f9b53f1a323a314a60d0ac86d3 (diff)
downloadphp-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.zip
php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.tar.gz
php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.tar.bz2
Namespaced
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
+}