src/Synthesize.php
public function setupWithArray(Array $arrData){
		foreach($arrData as $strProperty => $mixOptions){
			if(!is_array($mixOptions)){
				$strProperty = $mixOptions;
				$mixOptions = array();
			}

			$strProperty = $this->_formatPropertyName($strProperty);
			$this->_arrProperties[] = $strProperty;
			$this->_arrOptions[$strProperty] = new SynthesizeOption($mixOptions);
			$this->_arrData[$strProperty] = $this->_create($this->_arrOptions[$strProperty]);
		}
	}
public function setupWithArray(Array $arrData){
		foreach($arrData as $strProperty => $mixOptions){
			if(!is_array($mixOptions)){
				$strProperty = $mixOptions;
				$mixOptions = array();
			}

			$strProperty = $this->_formatPropertyName($strProperty);
			$this->_arrProperties[] = $strProperty;
			$this->_arrOptions[$strProperty] = new SynthesizeOption($mixOptions);
			$this->_arrData[$strProperty] = $this->_create($this->_arrOptions[$strProperty]);
		}
	}
public function setupWithArray ( Array $ arrData ) { foreach ( $ arrData as $ strProperty => $ mixOptions ) { if ( ! is_array ( $ mixOptions ) ) { $ strProperty = $ mixOptions ; $ mixOptions = array ( ) ; } $ strProperty = $ this -> _formatPropertyName ( $ strProperty ) ; $ this -> _arrProperties [ ] = $ strProperty ; $ this -> _arrOptions [ $ strProperty ] = new SynthesizeOption ( $ mixOptions ) ; $ this -> _arrData [ $ strProperty ] = $ this -> _create ( $ this -> _arrOptions [ $ strProperty ] ) ; } }
Setup With Array Method

Sets up the object using an array of options.
@param array $arrData The options in array format.
@return void
Setup With Array Method