classe Generator (Voir la source)

Traits

Méthodes

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

Throw fails command

__construct(string $base_dir, string $name)

GeneratorCommand constructor

filenameIsValide($filename)

Check if filename is valide

bool
fileExists()

Check if controller exists

string
getPath()

Get file path

bool
exists()

Check if controller exists

bool
write(string $type, array $data = [])

Write file

bool|mixed|string
makeStub(string $type, array $data = [])

Stub render

setName(string $name)

Set writing filename

setBaseDirectory(string $base_dir)

Get the base directory

Détails

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

Throw fails command

Paramètres

string $message
string $command

Exceptions

ErrorException

__construct(string $base_dir, string $name)

GeneratorCommand constructor

Paramètres

string $base_dir
string $name

filenameIsValide($filename)

Check if filename is valide

Paramètres

$filename

bool fileExists()

Check if controller exists

Valeur de retour

bool

string getPath()

Get file path

Valeur de retour

string

bool exists()

Check if controller exists

Valeur de retour

bool

bool write(string $type, array $data = [])

Write file

Paramètres

string $type
array $data

Valeur de retour

bool

bool|mixed|string makeStub(string $type, array $data = [])

Stub render

Paramètres

string $type
array $data

Valeur de retour

bool|mixed|string

setName(string $name)

Set writing filename

Paramètres

string $name

setBaseDirectory(string $base_dir)

Get the base directory

Paramètres

string $base_dir