public static function build($name, $url, $isInternal, $isNewtab)
    {
        $link = new static;

        $link->title               = $name;
        $link->url                 = $url;
        $link->is_internal         = (bool) $isInternal;
        $link->is_newtab           = (bool) $isNewtab;

        return $link;
    }
public static function build($name, $url, $isInternal, $isNewtab)
    {
        $link = new static;

        $link->title               = $name;
        $link->url                 = $url;
        $link->is_internal         = (bool) $isInternal;
        $link->is_newtab           = (bool) $isNewtab;

        return $link;
    }
public static function build ( $ name , $ url , $ isInternal , $ isNewtab ) { $ link = new static ; $ link -> title = $ name ; $ link -> url = $ url ; $ link -> is_internal = ( bool ) $ isInternal ; $ link -> is_newtab = ( bool ) $ isNewtab ; return $ link ; }
Create a new link.

@param string $name
@param string $url
@param bool $isInternal
@param bool $isNewtab
@return static
Create a new link .