PHP Класс Laracademy\Generators\Commands\ModelFromTableCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$columns
$databaseConnection
$debug
$fieldsCast
$fieldsDate
$fieldsFillable
$fieldsHidden
$options

Защищенные свойства (Protected)

Свойство Тип Описание
$description string The console command description.
$signature string The name and signature of the console command.

Открытые методы

Метод Описание
__construct ( ) : void Create a new command instance.
describeTable ( $tableName )
doComment ( $text, $overrideDebug = false ) will add a comment to the screen if debug is on, or is over-ridden.
getAllTables ( ) will return an array of all table names.
getOptions ( ) returns all the options that the user specified.
getSchema ( $tableName )
getStub ( ) returns the stub to use to generate the class.
handle ( ) : mixed Execute the console command.
replaceClassName ( string $stub, string $tableName ) : string replaces the class name in the stub.
replaceConnection ( $stub, $database )
replaceModuleInformation ( string $stub, array $modelInformation ) : string replaces the module information.

Описание методов

__construct() публичный Метод

Create a new command instance.
public __construct ( ) : void
Результат void

describeTable() публичный Метод

public describeTable ( $tableName )

doComment() публичный Метод

will add a comment to the screen if debug is on, or is over-ridden.
public doComment ( $text, $overrideDebug = false )

getAllTables() публичный Метод

will return an array of all table names.
public getAllTables ( )

getOptions() публичный Метод

returns all the options that the user specified.
public getOptions ( )

getSchema() публичный Метод

public getSchema ( $tableName )

getStub() публичный Метод

returns the stub to use to generate the class.
public getStub ( )

handle() публичный Метод

Execute the console command.
public handle ( ) : mixed
Результат mixed

replaceClassName() публичный Метод

replaces the class name in the stub.
public replaceClassName ( string $stub, string $tableName ) : string
$stub string stub content
$tableName string the name of the table to make as the class
Результат string stub content

replaceConnection() публичный Метод

public replaceConnection ( $stub, $database )

replaceModuleInformation() публичный Метод

replaces the module information.
public replaceModuleInformation ( string $stub, array $modelInformation ) : string
$stub string stub content
$modelInformation array array (key => value)
Результат string stub content

Описание свойств

$columns публичное свойство

public $columns

$databaseConnection публичное свойство

public $databaseConnection

$debug публичное свойство

public $debug

$description защищенное свойство

The console command description.
protected string $description
Результат string

$fieldsCast публичное свойство

public $fieldsCast

$fieldsDate публичное свойство

public $fieldsDate

$fieldsFillable публичное свойство

public $fieldsFillable

$fieldsHidden публичное свойство

public $fieldsHidden

$options публичное свойство

public $options

$signature защищенное свойство

The name and signature of the console command.
protected string $signature
Результат string