File indexing completed on 2024-06-23 05:55:44

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Service_WindowsAzure
0017  * @subpackage Diagnostics
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id$
0021  */
0022 
0023 /**
0024  * @category   Zend
0025  * @package    Zend_Service_WindowsAzure
0026  * @subpackage Diagnostics
0027  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0028  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0029  */
0030 abstract class Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
0031 {
0032     /**
0033      * Data
0034      * 
0035      * @var array
0036      */
0037     protected $_data = null;
0038     
0039     /**
0040      * Magic overload for setting properties
0041      * 
0042      * @param string $name     Name of the property
0043      * @param string $value    Value to set
0044      */
0045     public function __set($name, $value) {
0046         if (array_key_exists(strtolower($name), $this->_data)) {
0047             $this->_data[strtolower($name)] = $value;
0048             return;
0049         }
0050   // require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
0051         throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name);
0052     }
0053 
0054     /**
0055      * Magic overload for getting properties
0056      * 
0057      * @param string $name     Name of the property
0058      */
0059     public function __get($name) {
0060         if (array_key_exists(strtolower($name), $this->_data)) {
0061             return $this->_data[strtolower($name)];
0062         }
0063   // require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
0064         throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name);
0065     }
0066 }