1: <?php
2: /**
3: * This file contains the Horde_Service_Weather_Station class for abstracting
4: * access to station descriptors.
5: *
6: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
7: *
8: * @author Michael J Rubinsky <mrubinsk@horde.org>
9: * @license http://www.horde.org/licenses/bsd BSD
10: * @category Horde
11: * @package Service_Weather
12: */
13:
14: /**
15: * Horde_Service_Weather_Station class
16: *
17: * @author Michael J Rubinsky <mrubinsk@horde.org>
18: * @category Horde
19: * @package Service_Weather
20: */
21: class Horde_Service_Weather_Station
22: {
23: protected $_properties = array();
24:
25: public function __construct($properties = array())
26: {
27: $this->_properties = $properties;
28: }
29:
30: public function __get($property)
31: {
32: if (isset($this->_properties[$property])) {
33: return $this->_properties[$property];
34: }
35: return '';
36: }
37:
38: public function __set($property, $value)
39: {
40: $this->_properties[$property] = $value;
41: }
42:
43: }