package tech.easyflow.ai.easyagentsflow.entity;

import java.util.ArrayList;
import java.util.List;

public class WorkflowCheckResult {
    private boolean passed;
    private WorkflowCheckStage stage;
    private int issueCount;
    private List<WorkflowCheckIssue> issues = new ArrayList<>();

    public WorkflowCheckResult() {
    }

    public boolean isPassed() {
        return passed;
    }

    public void setPassed(boolean passed) {
        this.passed = passed;
    }

    public WorkflowCheckStage getStage() {
        return stage;
    }

    public void setStage(WorkflowCheckStage stage) {
        this.stage = stage;
    }

    public int getIssueCount() {
        return issueCount;
    }

    public void setIssueCount(int issueCount) {
        this.issueCount = issueCount;
    }

    public List<WorkflowCheckIssue> getIssues() {
        return issues;
    }

    public void setIssues(List<WorkflowCheckIssue> issues) {
        this.issues = issues == null ? new ArrayList<>() : issues;
    }
}
