class Model

Helper class for model related console commands.

Constants

MODEL_PATH

Path to model classes.

Methods

static int
makeModel(InputInterface $input)

Generates a new model class.

static string
modelTemplate(string $modelName)

The default template for a new model class.

static string
uploadModelTemplate(string $modelName)

The default template for a new upload model class.

Details

at line 22
static int makeModel(InputInterface $input)

Generates a new model class.

Parameters

InputInterface $input

The Symfony InputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.

at line 39
static string modelTemplate(string $modelName)

The default template for a new model class.

Parameters

string $modelName

The name of the model.

Return Value

string

The contents for a new model.

at line 97
static string uploadModelTemplate(string $modelName)

The default template for a new upload model class.

Parameters

string $modelName

The name of the model.

Return Value

string

The contents for a new model.