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
see
ProductRichSnippets::getContext()
see
ProductRichSnippets::getType()
see
Element

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

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
Return values
void

Search results