public function getHeaderProxy()
    {
        if ($this->isTestMode) {
            $className = \Tx_Oelib_HeaderCollector::class;
        } else {
            $className = \Tx_Oelib_RealHeaderProxy::class;
        }

        if (!is_object($this->headerProxy) || (get_class($this->headerProxy) !== $className)) {
            $this->headerProxy = GeneralUtility::makeInstance($className);
        }

        return $this->headerProxy;
    }
public function getHeaderProxy()
    {
        if ($this->isTestMode) {
            $className = \Tx_Oelib_HeaderCollector::class;
        } else {
            $className = \Tx_Oelib_RealHeaderProxy::class;
        }

        if (!is_object($this->headerProxy) || (get_class($this->headerProxy) !== $className)) {
            $this->headerProxy = GeneralUtility::makeInstance($className);
        }

        return $this->headerProxy;
    }
public function getHeaderProxy ( ) { if ( $ this -> isTestMode ) { $ className = \ Tx_Oelib_HeaderCollector :: class ; } else { $ className = \ Tx_Oelib_RealHeaderProxy :: class ; } if ( ! is_object ( $ this -> headerProxy ) || ( get_class ( $ this -> headerProxy ) !== $ className ) ) { $ this -> headerProxy = GeneralUtility :: makeInstance ( $ className ) ; } return $ this -> headerProxy ; }
Retrieves the singleton header proxy instance. Depending on the mode,
this instance is either a header collector or a real header proxy.

@return \Tx_Oelib_AbstractHeaderProxy|\Tx_Oelib_HeaderCollector|\Tx_Oelib_RealHeaderProxy the singleton header
proxy
Retrieves the singleton header proxy instance . Depending on the mode this instance is either a header collector or a real header proxy .