class
Illuminate
/
Foundation
/
Console
/
ClosureCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ClosureCommand
Extends
Properties
Methods
public
__construct ( $signature , Closure $callback ) : void
Create a new command instance.
Parameters
- $signature string
- $callback Closure
protected
execute ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int
Execute the console command.
Parameters
- $input Symfony\...\InputInterface
- $output Symfony\...\OutputInterface
public
purpose ( $description ) : $this
Set the description for the command.
Parameters
- $description string
public
describe ( $description ) : $this
Set the description for the command.
Parameters
- $description string