class
Illuminate
/
Foundation
/
Console
/
ClosureCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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