abstract class Factory (View source)

Methods

array
definition()

Define a factory definition for online mall companies

static Factory
make(array|null $state = [])

Create a new Factory instance

state(array $state)

Update the state of the returned definitions

array
create()

Create definition(s) with the given state and count

Details

abstract array definition()

Define a factory definition for online mall companies

Return Value

array

The method returns a row of a specific order sheet for a company

static Factory make(array|null $state = [])

Create a new Factory instance

Parameters

array|null $state

The new state

Return Value

Factory

The method returns a new Factory instance

Factory state(array $state)

Update the state of the returned definitions

Parameters

array $state

The new state

Return Value

Factory

The method returns the new state

array create()

Create definition(s) with the given state and count

Return Value

array

The method returns the definition with the given state and count