private function batchesFinished($batchesResult)
    {
        $allfinished = true;
        foreach ($batchesResult as $key => $batch) {
            if ($batch['Status'] != 'Completed') {
                $allfinished = false;
            }
        }
        return $allfinished;
    }
private function batchesFinished($batchesResult)
    {
        $allfinished = true;
        foreach ($batchesResult as $key => $batch) {
            if ($batch['Status'] != 'Completed') {
                $allfinished = false;
            }
        }
        return $allfinished;
    }
private function batchesFinished ( $ batchesResult ) { $ allfinished = true ; foreach ( $ batchesResult as $ key => $ batch ) { if ( $ batch [ 'Status' ] != 'Completed' ) { $ allfinished = false ; } } return $ allfinished ; }
Test if all batches are finished
@param array $batchesResult
@return bool
Test if all batches are finished