protected function getFragment(?string $fragment) : ?string
    {
        if ($fragment === null) {
            return null;
        }

        return '#' . $this->trim($fragment, '#');
    }
protected function getFragment(?string $fragment) : ?string
    {
        if ($fragment === null) {
            return null;
        }

        return '#' . $this->trim($fragment, '#');
    }
protected function getFragment ( ? string $ fragment ) : ? string { if ( $ fragment === null ) { return null ; } return '#' . $ this -> trim ( $ fragment , '#' ) ; }
Get url fragment

@param null|string $fragment
@return null|string
Get url fragment