public function setResultStore(array $options)
    {
        if (!isset($options['type'])) {
            return $this;
        }
        
        $namespace = self::RHUBARB_RESULTSTORE_NAMESPACE;
        if (isset($options['class_namespace'])&& $options['class_namespace']) {
            $namespace = $options['class_namespace'];
        }
        
        $namespace = rtrim($namespace,self::NS_SEPERATOR);
        $resultStoreClass = $namespace . self::NS_SEPERATOR . $options['type'];
        if (!class_exists($resultStoreClass)) {
            throw new Exception(
                sprintf('ResultStore class [%s] unknown', $resultStoreClass)
            );
        }
        
        $reflect = new \ReflectionClass($resultStoreClass);
        $this->resultBroker = $reflect->newInstanceArgs(array((array)@$options['options']));
        return $this;
    }
public function setResultStore(array $options)
    {
        if (!isset($options['type'])) {
            return $this;
        }
        
        $namespace = self::RHUBARB_RESULTSTORE_NAMESPACE;
        if (isset($options['class_namespace'])&& $options['class_namespace']) {
            $namespace = $options['class_namespace'];
        }
        
        $namespace = rtrim($namespace,self::NS_SEPERATOR);
        $resultStoreClass = $namespace . self::NS_SEPERATOR . $options['type'];
        if (!class_exists($resultStoreClass)) {
            throw new Exception(
                sprintf('ResultStore class [%s] unknown', $resultStoreClass)
            );
        }
        
        $reflect = new \ReflectionClass($resultStoreClass);
        $this->resultBroker = $reflect->newInstanceArgs(array((array)@$options['options']));
        return $this;
    }
public function setResultStore ( array $ options ) { if ( ! isset ( $ options [ 'type' ] ) ) { return $ this ; } $ namespace = self :: RHUBARB_RESULTSTORE_NAMESPACE ; if ( isset ( $ options [ 'class_namespace' ] ) && $ options [ 'class_namespace' ] ) { $ namespace = $ options [ 'class_namespace' ] ; } $ namespace = rtrim ( $ namespace , self :: NS_SEPERATOR ) ; $ resultStoreClass = $ namespace . self :: NS_SEPERATOR . $ options [ 'type' ] ; if ( ! class_exists ( $ resultStoreClass ) ) { throw new Exception ( sprintf ( 'ResultStore class [%s] unknown' , $ resultStoreClass ) ) ; } $ reflect = new \ ReflectionClass ( $ resultStoreClass ) ; $ this -> resultBroker = $ reflect -> newInstanceArgs ( array ( ( array ) @ $ options [ 'options' ] ) ) ; return $ this ; }
Instantiates the ResultStore object by using user supplied options. Supported options are as follows;

- <b>type:</b> the Class Type that will be created
- <b>class_namespace:</b> over-ride the base namespace to a user namespace for custom result-broker classes
- <b>options:</b> result_broker class specific options

@param array $options

@return Rhubarb
@throws Exception
Instantiates the ResultStore object by using user supplied options . Supported options are as follows ;