class Illuminate / Foundation / Console / ClosureCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ClosureCommand

Extends

Properties

protected

$callback Closure

The command callback.

Default: null

Methods

public

__construct ( $signature , Closure $callback ) : void

Create a new command instance.

Parameters

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