class ModelCommand extends AbstractCommand (View source)

Traits

Properties

protected Setting $setting

Store dirname

from  AbstractCommand
protected array $namespaces

The application namespace

from  AbstractCommand
protected Argument $arg

The Arg Option instance

from  AbstractCommand

Methods

void
throwFailsCommand(string $message, string|null $command = null)

Throw fails command

void
__construct(Setting $setting, Argument $arg)

AbstractCommand constructor

mixed
generate(string $model)

Add Model

Details

protected void throwFailsCommand(string $message, string|null $command = null)

Throw fails command

Parameters

string $message
string|null $command

Return Value

void

Exceptions

ErrorException

void __construct(Setting $setting, Argument $arg)

AbstractCommand constructor

Parameters

Setting $setting
Argument $arg

Return Value

void

mixed generate(string $model)

Add Model

Parameters

string $model

Return Value

mixed