PHP 클래스 League\FactoryMuffin\Generators\FactoryGenerator

The factory generator can be useful for setting up relationships between models. The factory generator will return the model id of the model you ask it to generate.
저자: Graham Campbell ([email protected])
저자: Scott Robertson ([email protected])
저자: Michael Bodnarchuk ([email protected])
상속: extends EntityGenerator
파일 보기 프로젝트 열기: zizaco/factory-muff 1 사용 예제들

공개 메소드들

메소드 설명
generate ( ) : integer | null Generate, and return the attribute.
getPrefix ( ) : string Get the generator prefix.

비공개 메소드들

메소드 설명
getId ( object $model ) : integer | null Get the model id.

메소드 상세

generate() 공개 메소드

The value returned is the id of the generated model, if applicable.
public generate ( ) : integer | null
리턴 integer | null

getPrefix() 공개 정적인 메소드

Get the generator prefix.
public static getPrefix ( ) : string
리턴 string