ContentSitemapPriority
in package
implements
LocalizedContentAttributeInterface
Class ContentSitemapPriority
This class represents the localized site map priority
Tags
Interfaces, Classes and Traits
- LocalizedContentAttributeInterface
- Interface LocalizedContentAttributeInterface
Table of Contents
- MAX = 1.0
- Maximum value
- MIN = 0.0
- Minimum value
- $languageCode : string
- Language code
- $priority : string
- Content site map priority
- __construct() : mixed
- ContentSitemapPriority constructor
- content() : string
- Return the content site map priority
- languageCode() : string
- Return the language code
- formatSitemapPriority() : string
- Format the provided site map priority float to its according string representation This method will NOT round the value of a provided float, that contains many decimals
Constants
MAX
Maximum value
public
mixed
MAX
= 1.0
MIN
Minimum value
public
mixed
MIN
= 0.0
Properties
$languageCode
Language code
protected
string
$languageCode
$priority
Content site map priority
protected
string
$priority
Methods
__construct()
ContentSitemapPriority constructor
public
__construct(float $priority, LanguageCode $languageCode) : mixed
Parameters
- $priority : float
-
Content site map priority
- $languageCode : LanguageCode
-
Language code
Return values
mixed —content()
Return the content site map priority
public
content() : string
Return values
string —languageCode()
Return the language code
public
languageCode() : string
Return values
string —formatSitemapPriority()
Format the provided site map priority float to its according string representation This method will NOT round the value of a provided float, that contains many decimals
protected
formatSitemapPriority(float $value) : string
Parameters
- $value : float
-
Float site map priority value