PHP Class Laralib\L5scaffold\Validators\SchemaParser

Author: Ryan Gurnick ([email protected])
Show file Open project: laralib/l5scaffold

Public Methods

Method Description
parse ( string $schema ) : array Parse the command line migration schema.

Private Methods

Method Description
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.

Method Details

parse() public method

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