class CjFactory extends Factory (View source)

Properties

protected array $state

Change key-value pairs in the definition

from  Factory

Methods

array
definition()

Define the CJ parcel service's default state.

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

Create a new Factory instance

from  Factory
state(array $state)

Update the state of the returned definitions

from  Factory
array
create()

Merge nested state key by key and keep the rendered barcode synchronized with the tracking number.

Details

array definition()

Define the CJ parcel service's default state.

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()

Merge nested state key by key and keep the rendered barcode synchronized with the tracking number.

Return Value

array

The method returns the definition with the given state and count