public function stopAll($message = 'Stop', $context = [], $lap = true)
    {
        // Stop all running child profiles first
        foreach ($this->getProfiles(true) as $child) {
            $child->stopAll($message, $context, $lap);
        }

        // Stop this profile if still running
        if ($this->isRunning()) {
            $this->stop($message, $context, $lap);
        }

        return $this;
    }
public function stopAll($message = 'Stop', $context = [], $lap = true)
    {
        // Stop all running child profiles first
        foreach ($this->getProfiles(true) as $child) {
            $child->stopAll($message, $context, $lap);
        }

        // Stop this profile if still running
        if ($this->isRunning()) {
            $this->stop($message, $context, $lap);
        }

        return $this;
    }
public function stopAll ( $ message = 'Stop' , $ context = [ ] , $ lap = true ) { // Stop all running child profiles first foreach ( $ this -> getProfiles ( true ) as $ child ) { $ child -> stopAll ( $ message , $ context , $ lap ) ; } // Stop this profile if still running if ( $ this -> isRunning ( ) ) { $ this -> stop ( $ message , $ context , $ lap ) ; } return $ this ; }
Stop this profile and all children of this profile.

@param string $message [optional]
@param array  $context [optional]
@param bool   $lap     [optional]

@return $this
Stop this profile and all children of this profile .