Symfony\Component\Console\Command\Command::setDescription PHP Метод

setDescription() публичный Метод

Sets the description for the command.
public setDescription ( string $description ) : Command
$description string The description for the command
Результат Command The current instance
    public function setDescription($description)
    {
        $this->description = $description;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * @param string $desc
  * @return static
  */
 public function setDescription($desc)
 {
     if ($this instanceof IMightLoseData) {
         $desc .= ' <comment>(loses current data)</comment>';
     }
     return parent::setDescription($desc);
 }
All Usage Examples Of Symfony\Component\Console\Command\Command::setDescription