ItemCreatorInterface
Item creator interface
Table of Contents
Methods
| make() | Combines an item and fields |
| makeItem() | Creates an item |
Methods
make()
Combines an item and fields
public
make(string $method, stdClass $fields) : mixed
Parameters
- $method : string
-
The method to call for matching fields
- $fields : stdClass
-
An stdClass object representing the object data fields
makeItem()
Creates an item
public
makeItem(stdClass|array<string|int, mixed> $fields) : mixed
Parameters
- $fields : stdClass|array<string|int, mixed>
-
A set of fields to include on the item