return $this->help;
} /**
* Returns the processed help for the command replacing the %command.name% and
* %command.full_name% patterns with the real values dynamically.
*/
public function getProcessedHelp(): string
{ $name =
$this->name;
$isSingleCommand =
$this->application?->
isSingleCommand();
$placeholders =
[ '%command.name%',
'%command.full_name%',
];
$replacements =
[ $name,
$isSingleCommand ?
$_SERVER['PHP_SELF'
] :
$_SERVER['PHP_SELF'
].' '.
$name,
];
return str_replace($placeholders,
$replacements,
$this->
getHelp() ?:
$this->
getDescription());
}