protected static function setAnchorPoint($anchor){
        if(is_string($anchor) && !empty(trim($anchor))){
            self::$anchor = '#'.trim($anchor, '#');
        }
        else{
            self::$anchor = false;
        }
    }
protected static function setAnchorPoint($anchor){
        if(is_string($anchor) && !empty(trim($anchor))){
            self::$anchor = '#'.trim($anchor, '#');
        }
        else{
            self::$anchor = false;
        }
    }
protected static function setAnchorPoint ( $ anchor ) { if ( is_string ( $ anchor ) && ! empty ( trim ( $ anchor ) ) ) { self :: $ anchor = '#' . trim ( $ anchor , '#' ) ; } else { self :: $ anchor = false ; } }
Sets the anchor point for the link
@param mixed $anchor If the anchor point exists set to the string here
Sets the anchor point for the link