public function resolveContext($name)
    {
        if (!isset($this->_contexts[$name])) {
            throw new CException(sprintf('Failed to find payment context "%s".', $name));
        }
        return $this->_contexts[$name];
    }
public function resolveContext($name)
    {
        if (!isset($this->_contexts[$name])) {
            throw new CException(sprintf('Failed to find payment context "%s".', $name));
        }
        return $this->_contexts[$name];
    }
public function resolveContext ( $ name ) { if ( ! isset ( $ this -> _contexts [ $ name ] ) ) { throw new CException ( sprintf ( 'Failed to find payment context "%s".' , $ name ) ) ; } return $ this -> _contexts [ $ name ] ; }
Resolves a payment context by name.
@param string $name the name of the payment context.
@return PaymentContext the payment context.
@throws CException if context cannot be found.
Resolves a payment context by name .