src/Console/CommandTrait.php
public function name(): string
    {
        static $name = null;
        if ($name === null) {
            // Extract command name from the class name.
            $class = substr(strrchr(static::class, '\\'), 1);
            $name = CommandLoader::inverseTranslate($class);
        }

        return $name;
    }
public function name(): string
    {
        static $name = null;
        if ($name === null) {
            // Extract command name from the class name.
            $class = substr(strrchr(static::class, '\\'), 1);
            $name = CommandLoader::inverseTranslate($class);
        }

        return $name;
    }
public function name ( ) : string { static $ name = null ; if ( $ name === null ) { // Extract command name from the class name. $ class = substr ( strrchr ( static :: class , '\\' ) , 1 ) ; $ name = CommandLoader :: inverseTranslate ( $ class ) ; } return $ name ; }
Translate current class name to command name.

@return string command name
Translate current class name to command name .