RecordCollectionFactory
in package
implements
RecordCollectionFactoryInterface
Simple XML-based factory for record collection.
Tags
Interfaces, Classes, Traits and Enums
- RecordCollectionFactoryInterface
- Search backend record collection factory interface.
Table of Contents
- $collectionClass : string
- Class of collection.
- $recordFactory : callable
- Factory to turn data into a record object.
- __construct() : void
- Constructor.
- factory() : RecordCollection
- Return record collection.
Properties
$collectionClass
Class of collection.
protected
string
$collectionClass
$recordFactory
Factory to turn data into a record object.
protected
callable
$recordFactory
Methods
__construct()
Constructor.
public
__construct([callable $recordFactory = null ][, string $collectionClass = null ]) : void
Parameters
- $recordFactory : callable = null
-
Record factory function (null for default)
- $collectionClass : string = null
-
Class of collection
Return values
void —factory()
Return record collection.
public
factory(array<string|int, mixed> $response) : RecordCollection
Parameters
- $response : array<string|int, mixed>
-
Collection of XML documents