PHP Класс League\FactoryMuffin\Generators\GeneratorFactory

Автор: Graham Campbell ([email protected])
Автор: Scott Robertson ([email protected])
Автор: Michael Bodnarchuk ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
generate ( string | callable $kind, object $model, FactoryMuffin $factoryMuffin ) : mixed Automatically generate the attribute we want.
make ( string | callable $kind, object $model, FactoryMuffin $factoryMuffin ) : League\FactoryMuffin\Generators\GeneratorInterface | null Automatically make the generator class we need.

Описание методов

generate() публичный метод

Automatically generate the attribute we want.
public generate ( string | callable $kind, object $model, FactoryMuffin $factoryMuffin ) : mixed
$kind string | callable The kind of attribute.
$model object The model instance.
$factoryMuffin League\FactoryMuffin\FactoryMuffin The factory muffin instance.
Результат mixed

make() публичный метод

Automatically make the generator class we need.
public make ( string | callable $kind, object $model, FactoryMuffin $factoryMuffin ) : League\FactoryMuffin\Generators\GeneratorInterface | null
$kind string | callable The kind of attribute.
$model object The model instance.
$factoryMuffin League\FactoryMuffin\FactoryMuffin The factory muffin instance.
Результат League\FactoryMuffin\Generators\GeneratorInterface | null