PHP Class Laralib\L5scaffold\Localizations\SchemaParser

Author: Ryan Gurnick ([email protected])
Afficher le fichier Open project: laralib/l5scaffold

Méthodes publiques

Méthode Description
parse ( string $schema ) : array Parse the command line migration schema.

Private Methods

Méthode 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 méthode

Ex: name:string, age:integer:nullable
public parse ( string $schema ) : array
$schema string
Résultat array