Property | Type | Description | |
---|---|---|---|
$description | string | The console command description. | |
$dirs | |||
$filename | |||
$files | Illuminate\Filesystem\Filesystem | ||
$methods | |||
$name | string | The console command name. | |
$properties | |||
$reset | |||
$write |
Method | Description | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $files ) | ||
fire ( ) : void | Execute the console command. | |
getParameters ( $method ) : array | Get the parameters and format them correctly |
Method | Description | |
---|---|---|
castPropertiesType ( |
cast the properties's type from $casts. | |
createPhpDocs ( string $class ) : string | ||
generateDocs ( $loadModels, $ignore = '' ) | ||
getArguments ( ) : array | Get the console command arguments. | |
getOptions ( ) : array | Get the console command options. | |
getPropertiesFromMethods ( |
||
getPropertiesFromTable ( |
Load the properties from the database table. | |
getReturnTypeFromDocBlock ( ReflectionMethod $reflection ) : null | string | Get method return type based on it DocBlock comment | |
getTypeOverride ( string $type ) : string | Returns the overide type for the give type. | |
hasCamelCaseModelProperties ( ) : boolean | ||
loadModels ( ) | ||
setMethod ( $name, $type = '', $arguments = [] ) | ||
setProperty ( string $name, string | null $type = null, boolean | null $read = null, boolean | null $write = null, string | null $comment = '' ) |
Method | Description | |
---|---|---|
getCollectionClass ( string $className ) : string | Determine a model classes' collection type. |
public __construct ( Illuminate\Filesystem\Filesystem $files ) | ||
$files | Illuminate\Filesystem\Filesystem |
protected castPropertiesType ( |
||
$model |
protected createPhpDocs ( string $class ) : string | ||
$class | string | |
return | string |
protected getArguments ( ) : array | ||
return | array |
protected getOptions ( ) : array | ||
return | array |
public getParameters ( $method ) : array | ||
$method | ||
return | array |
protected getPropertiesFromMethods ( |
||
$model |
protected getPropertiesFromTable ( |
||
$model |
protected getReturnTypeFromDocBlock ( ReflectionMethod $reflection ) : null | string | ||
$reflection | ReflectionMethod | |
return | null | string |
protected getTypeOverride ( string $type ) : string | ||
$type | string | |
return | string |
protected hasCamelCaseModelProperties ( ) : boolean | ||
return | boolean |
protected string $description | ||
return | string |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |