Acacha\Llum\Console\ConsoleCommand::name PHP Method

name() public method

Set/get name.
public name ( null | string $name = null ) : ConsoleCommand | string
$name null | string
return ConsoleCommand | string | string
    public function name($name = null)
    {
        return $this->getterSetter('name', $name);
    }

Usage Example

Esempio n. 1
0
 /**
  * Configure the command options.
  */
 protected function configure()
 {
     $command = new ConsoleCommand();
     $command->name($this->commandName)->description($this->commandDescription);
     if ($this->argument != null) {
         $command->argument(['name' => $this->argument, 'description' => $this->argumentDescription, 'type' => $this->argumentType]);
     }
     $this->configureCommand($command);
 }