PHP Class Owl\Console\Commands\ExportCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: owl/owl

Protected Properties

Property Type Description
$description string The console command description.
$itemService
$name string The console command name.

Public Methods

Method Description
__construct ( ItemService $itemService ) : void Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
exportData ( $export_path, $items )
generateOutputBody ( $data )
makeExportDir ( $export_path )

Method Details

__construct() public method

Create a new command instance.
public __construct ( ItemService $itemService ) : void
$itemService Owl\Services\ItemService
return void

exportData() protected method

protected exportData ( $export_path, $items )

fire() public method

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

generateOutputBody() protected method

protected generateOutputBody ( $data )

makeExportDir() protected method

protected makeExportDir ( $export_path )

Property Details

$description protected property

The console command description.
protected string $description
return string

$itemService protected property

protected $itemService

$name protected property

The console command name.
protected string $name
return string