RichSnippets
extends Element
in package
This is the rich snippets class.
The rich snippets will be stored in that class and will remain immutable (only get methods are available)
Tags
Table of Contents
$context | : string | |
---|---|---|
$error | : Error|null | |
$type | : string | |
getContext() | Returns the rich snippet context. | : string |
getError() | Returns the current element error (if there is error). | : Error|null |
getType() | Returns the rich snippet type. | : string |
setError() | : void |
Properties
$context
protected
string
$context
= ''
$error
protected
Error|null
$error
= null
$type
protected
string
$type
= ''
Methods
getContext()
Returns the rich snippet context.
public
getContext() : string
Return values
string —getError()
Returns the current element error (if there is error).
public
getError() : Error|null
Return values
Error|null —getType()
Returns the rich snippet type.
public
getType() : string
Return values
string —setError()
protected
setError(mixed $error) : void
Parameters
- $error : mixed