PlayautoFactory
class PlayautoFactory extends Factory (View source)
Constants
| private HEADER |
|
| private ORDER_FIELDS |
Fields that identify one order rather than one product line. |
Properties
| protected int | $count | How many is it creating the row |
from Factory |
| protected int | $bundleSize | The number of order lines to generate for each order. |
from Factory |
| protected array | $state | Change key-value pairs in the definition |
from Factory |
Methods
Define the order sheet's default state.
Create rows, grouping adjacent rows into one order when requested.
Get the stable column layout of generated PlayAuto samples.
Details
array
definition()
Define the order sheet's default state.
static Factory
make()
Create a new Factory instance
Factory
count(int|null $count = null)
Update the count of the returned definitions
Factory
bundle(int $bundleSize)
Set the number of rows to create for each order.
Factories that support grouped orders use this value to share order-level fields and calculate bundle totals.
Factory
state(array $state)
Update the state of the returned definitions
array
create()
Create rows, grouping adjacent rows into one order when requested.
array
header()
Get the stable column layout of generated PlayAuto samples.
protected array
applyState(array $record)
Apply configured values to a generated record.