Documentation

Factory
in package

Tags

Table of Contents

$factoryClass  : mixed
$factoryMakeCount  : int
__construct()  : mixed
count()  : $this
make()  : stdClass|array<string|int, stdClass>
makeWithUniqueAttributes()  : stdClass|array<string|int, stdClass>

Properties

$factoryClass

protected mixed $factoryClass
Tags

$factoryMakeCount

protected int $factoryMakeCount = 1
Tags

Methods

__construct()

public __construct(string $factoryClassPath) : mixed
Parameters
$factoryClassPath : string
Tags
Return values
mixed

count()

public count(int $count) : $this
Parameters
$count : int
Tags
Return values
$this

make()

public make([array<string|int, mixed> $attributes = [] ]) : stdClass|array<string|int, stdClass>
Parameters
$attributes : array<string|int, mixed> = []
Tags
Return values
stdClass|array<string|int, stdClass>

makeWithUniqueAttributes()

public makeWithUniqueAttributes([array<string|int, array<string|int, mixed>> $attributes = [] ]) : stdClass|array<string|int, stdClass>
Parameters
$attributes : array<string|int, array<string|int, mixed>> = []
Tags
Return values
stdClass|array<string|int, stdClass>

Search results