src/Console/CommandTrait.php
public function getCommandNameTraceArray()
    {
        $cmdStacks = [$this->name()];
        $p = $this->parent;
        while ($p) {
            if (!$p instanceof Application) {
                $cmdStacks[] = $p->name();
            }
            $p = $p->parent;
        }

        return array_reverse($cmdStacks);
    }
public function getCommandNameTraceArray()
    {
        $cmdStacks = [$this->name()];
        $p = $this->parent;
        while ($p) {
            if (!$p instanceof Application) {
                $cmdStacks[] = $p->name();
            }
            $p = $p->parent;
        }

        return array_reverse($cmdStacks);
    }
public function getCommandNameTraceArray ( ) { $ cmdStacks = [ $ this -> name ( ) ] ; $ p = $ this -> parent ; while ( $ p ) { if ( ! $ p instanceof Application ) { $ cmdStacks [ ] = $ p -> name ( ) ; } $ p = $ p -> parent ; } return array_reverse ( $ cmdStacks ) ; }
Return the command name stack

@return string[]
Return the command name stack