PHP Class Thepixeldeveloper\Sitemap\Subelements\Link

Inheritance: implements Thepixeldeveloper\Sitemap\OutputInterface, implements Thepixeldeveloper\Sitemap\AppendAttributeInterface
Mostrar archivo Open project: thepixeldeveloper/sitemap

Protected Properties

Property Type Description
$href string Location of the translated page.
$hrefLang string Language code for the page.

Public Methods

Method Description
__construct ( string $hrefLang, string $href ) Link constructor.
appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
generateXML ( XMLWriter $XMLWriter )
getHref ( ) : string Location of the translated page.
getHrefLang ( ) : string Language code for the page.

Method Details

__construct() public method

Link constructor.
public __construct ( string $hrefLang, string $href )
$hrefLang string
$href string

appendAttributeToCollectionXML() public method

public appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

generateXML() public method

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getHref() public method

Location of the translated page.
public getHref ( ) : string
return string

getHrefLang() public method

Language code for the page.
public getHrefLang ( ) : string
return string

Property Details

$href protected_oe property

Location of the translated page.
protected string $href
return string

$hrefLang protected_oe property

Language code for the page.
protected string $hrefLang
return string