public function isSuccessful()
    {
        return count(
            array_filter($this->results, function ($result) {
                if ($result instanceof ResultGroupInterface) {
                    return !$result->isSuccessful();
                }
                return $result instanceof FailureInterface;
            })
        ) === 0;
    }
public function isSuccessful()
    {
        return count(
            array_filter($this->results, function ($result) {
                if ($result instanceof ResultGroupInterface) {
                    return !$result->isSuccessful();
                }
                return $result instanceof FailureInterface;
            })
        ) === 0;
    }
public function isSuccessful ( ) { return count ( array_filter ( $ this -> results , function ( $ result ) { if ( $ result instanceof ResultGroupInterface ) { return ! $ result -> isSuccessful ( ) ; } return $ result instanceof FailureInterface ; } ) ) === 0 ; }
Computes whether the results are considered a success. If there are any results which implement
`FailureInterface` then the combined result is considered as a fail.

@return bool
Computes whether the results are considered a success . If there are any results which implement FailureInterface then the combined result is considered as a fail .