PHP Class EloquentFilter\Commands\MakeEloquentFilter

Inheritance: extends Illuminate\Console\Command, use trait Illuminate\Console\AppNamespaceDetectorTrait
Show file Open project: tucker-eric/eloquentfilter

Protected Properties

Property Type Description
$class array | string Class to create.
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$signature string The name and signature of the console command.

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $files ) MakeEloquentFilter constructor.
applyValuesToStub ( $stub )
compileStub ( )
getPath ( )
handle ( ) : mixed Execute the console command.
makeClassName ( ) Create Filter Class Name.

Protected Methods

Method Description
makeDirectory ( string $path ) : string Build the directory for the class if necessary.

Method Details

__construct() public method

MakeEloquentFilter constructor.
public __construct ( Illuminate\Filesystem\Filesystem $files )
$files Illuminate\Filesystem\Filesystem

applyValuesToStub() public method

public applyValuesToStub ( $stub )

compileStub() public method

public compileStub ( )

getPath() public method

public getPath ( )

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed

makeClassName() public method

Create Filter Class Name.
public makeClassName ( )

makeDirectory() protected method

Build the directory for the class if necessary.
protected makeDirectory ( string $path ) : string
$path string
return string

Property Details

$class protected property

Class to create.
protected array|string $class
return array | string

$description protected property

The console command description.
protected string $description
return string

$files protected property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem

$signature protected property

The name and signature of the console command.
protected string $signature
return string