DocumentFactoryTrait
Trait DocumentFactoryTrait is a basic getter setter for the DocumentFactory.
Getter and setter helpers
Table of Contents
Properties
- $class : string
- $fieldResolver : FieldResolver
- $items : null|ArrayList|DataList
Methods
- getClass() : string
- Current class being indexed
- getFieldResolver() : FieldResolver
- Get the FieldResolver class
- getItems() : ArrayList|DataList|null
- Get the items being indexed
- setClass() : DocumentFactory
- Set the current class to be indexed
- setItems() : DocumentFactory
- Set the items to index
Properties
$class
protected
string
$class
Current class that's being indexed
$fieldResolver
protected
FieldResolver
$fieldResolver
Resolver for fields
$items
protected
null|ArrayList|DataList
$items
Items to create documents for
Methods
getClass()
Current class being indexed
public
getClass() : string
Return values
stringgetFieldResolver()
Get the FieldResolver class
public
getFieldResolver() : FieldResolver
Return values
FieldResolvergetItems()
Get the items being indexed
public
getItems() : ArrayList|DataList|null
Return values
ArrayList|DataList|nullsetClass()
Set the current class to be indexed
public
setClass(string $class) : DocumentFactory
Parameters
- $class : string
Return values
DocumentFactorysetItems()
Set the items to index
public
setItems(ArrayList|DataList|null $items) : DocumentFactory
Parameters
- $items : ArrayList|DataList|null