src/Base/AbstractRequest.php
public function getReferrer(): ?UrlInterface
    {
        $referrerHeader = $this->getHeader('Referer');
        if ($referrerHeader === null) {
            return null;
        }

        return Url::tryParse($referrerHeader);
    }
public function getReferrer(): ?UrlInterface
    {
        $referrerHeader = $this->getHeader('Referer');
        if ($referrerHeader === null) {
            return null;
        }

        return Url::tryParse($referrerHeader);
    }
public function getReferrer ( ) : ? UrlInterface { $ referrerHeader = $ this -> getHeader ( 'Referer' ) ; if ( $ referrerHeader === null ) { return null ; } return Url :: tryParse ( $ referrerHeader ) ; }
Returns the referrer or null if request has no or invalid referrer.

@since 1.1.0

@return UrlInterface|null The referrer or null if request has no or invalid referrer.
Returns the referrer or null if request has no or invalid referrer .