public function getFailedResults(): ResultCollection
    {
        $failedResults = array_filter($this->results, function (Result $result) {
            return $result->isFailed();
        });

        return new self(...$failedResults);
    }
public function getFailedResults(): ResultCollection
    {
        $failedResults = array_filter($this->results, function (Result $result) {
            return $result->isFailed();
        });

        return new self(...$failedResults);
    }
public function getFailedResults ( ) : ResultCollection { $ failedResults = array_filter ( $ this -> results , function ( Result $ result ) { return $ result -> isFailed ( ) ; } ) ; return new self ( ... $ failedResults ) ; }
Get failed results

@return ResultCollection
Get failed results