name() 공개 메소드

Set/get name.
public name ( null | string $name = null ) : ConsoleCommand | string
$name null | string
리턴 ConsoleCommand | string | string
예제 #1
0
파일: LlumCommand.php 프로젝트: acacha/llum
 /**
  * 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);
 }