PageFactory
extends Factory
in package
This class will return the kind of page we need.
Tags
Table of Contents
CLASS_SUFFIX | = 'Page' | |
---|---|---|
DEFAULT_CLASS | = self::NAMESPACE . '\\Page' | |
NAMESPACE | = 'SDK\\Dtos\\Catalog\\Page' | |
TYPE | = 'pageType' | |
getElement() | Returns the needed element. | : Element|null |
getPage() | Returns the needed type of page. | : Page|null |
defaultReturnValue() | : Element|null | |
getClassName() | : string | |
getItem() | : Element|null | |
prepareClassName() | : string |
Constants
CLASS_SUFFIX
protected
mixed
CLASS_SUFFIX
= 'Page'
DEFAULT_CLASS
protected
mixed
DEFAULT_CLASS
= self::NAMESPACE . '\\Page'
NAMESPACE
protected
mixed
NAMESPACE
= 'SDK\\Dtos\\Catalog\\Page'
TYPE
protected
mixed
TYPE
= 'pageType'
Methods
getElement()
Returns the needed element.
public
static getElement([array<string|int, mixed> $data = [] ]) : Element|null
Parameters
- $data : array<string|int, mixed> = []
Tags
Return values
Element|null —getPage()
Returns the needed type of page.
public
static getPage([array<string|int, mixed> $data = [] ]) : Page|null
Parameters
- $data : array<string|int, mixed> = []
Return values
Page|null —defaultReturnValue()
protected
static defaultReturnValue(array<string|int, mixed> $data) : Element|null
Parameters
- $data : array<string|int, mixed>
Return values
Element|null —getClassName()
protected
static getClassName(string $name) : string
Parameters
- $name : string
Return values
string —getItem()
protected
static getItem([array<string|int, mixed> $data = [] ]) : Element|null
Parameters
- $data : array<string|int, mixed> = []
Return values
Element|null —prepareClassName()
protected
static prepareClassName(string $name) : string
Parameters
- $name : string