src/Zend/Loader/Autoloader/Resource.php
public function setOptions(array $options)
    {
        // Set namespace first, see ZF-10836
        if (isset($options['namespace'])) {
            $this->setNamespace($options['namespace']);
            unset($options['namespace']);
        }

        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
public function setOptions(array $options)
    {
        // Set namespace first, see ZF-10836
        if (isset($options['namespace'])) {
            $this->setNamespace($options['namespace']);
            unset($options['namespace']);
        }

        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
public function setOptions ( array $ options ) { // Set namespace first, see ZF-10836 if ( isset ( $ options [ 'namespace' ] ) ) { $ this -> setNamespace ( $ options [ 'namespace' ] ) ; unset ( $ options [ 'namespace' ] ) ; } $ methods = get_class_methods ( $ this ) ; foreach ( $ options as $ key => $ value ) { $ method = 'set' . ucfirst ( $ key ) ; if ( in_array ( $ method , $ methods ) ) { $ this -> $ method ( $ value ) ; } } return $ this ; }
Set class state from options

@param  array $options
@return Zend_Loader_Autoloader_Resource
Set class state from options