PHP 클래스 Laralib\L5scaffold\Localizations\SchemaParser

저자: Ryan Gurnick ([email protected])
파일 보기 프로젝트 열기: laralib/l5scaffold

공개 메소드들

메소드 설명
parse ( string $schema ) : array Parse the command line migration schema.

비공개 메소드들

메소드 설명
addField ( array $field ) Add a field to the schema array.
parseSegments ( string $field ) : array Get the segments of the schema field.
splitIntoFields ( string $schema ) : array Get an array of fields from the given schema.

메소드 상세

parse() 공개 메소드

Ex: name:string, age:integer:nullable
public parse ( string $schema ) : array
$schema string
리턴 array