public function value($name)
    {
        if (empty($this->requestOrder)) {
            throw new RuntimeException('Unable to determine the request order');
        }

        $result = null;

        foreach ($this->requestOrder as $token) {
            $method = $this->resolveRequestOrderMethod($token);

            if (empty($method)) {
                continue;
            }

            $result = $this->$method($name);

            if (!is_null($result)) {
                break;
            }
        }

        return $result;
    }
public function value($name)
    {
        if (empty($this->requestOrder)) {
            throw new RuntimeException('Unable to determine the request order');
        }

        $result = null;

        foreach ($this->requestOrder as $token) {
            $method = $this->resolveRequestOrderMethod($token);

            if (empty($method)) {
                continue;
            }

            $result = $this->$method($name);

            if (!is_null($result)) {
                break;
            }
        }

        return $result;
    }
public function value ( $ name ) { if ( empty ( $ this -> requestOrder ) ) { throw new RuntimeException ( 'Unable to determine the request order' ) ; } $ result = null ; foreach ( $ this -> requestOrder as $ token ) { $ method = $ this -> resolveRequestOrderMethod ( $ token ) ; if ( empty ( $ method ) ) { continue ; } $ result = $ this -> $ method ( $ name ) ; if ( ! is_null ( $ result ) ) { break ; } } return $ result ; }
Retrieve a value using the configured request order

@param string $name

@return mixed
@throws RuntimeException
Retrieve a value using the configured request order