public function isSuccessful()
    {
        if ($this->getState() === static::STATE_NOT_RUNNING) {
            foreach ($this->items as $run) {
                if (!$run->isSuccessful()) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
public function isSuccessful()
    {
        if ($this->getState() === static::STATE_NOT_RUNNING) {
            foreach ($this->items as $run) {
                if (!$run->isSuccessful()) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
public function isSuccessful ( ) { if ( $ this -> getState ( ) === static :: STATE_NOT_RUNNING ) { foreach ( $ this -> items as $ run ) { if ( ! $ run -> isSuccessful ( ) ) { return false ; } } return true ; } return false ; }
Was this run successful

@return bool
Was this run successful