PHP 클래스 League\FactoryMuffin\Generators\GeneratorFactory

저자: Graham Campbell ([email protected])
저자: Scott Robertson ([email protected])
저자: Michael Bodnarchuk ([email protected])
파일 보기 프로젝트 열기: zizaco/factory-muff 1 사용 예제들

공개 메소드들

메소드 설명
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