<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Resolver\AutoGenerationInterface;

/**
 * This code is @generated by axtiva/flexible-graphql-php
 * if you want to extend it or change, then remove interface AutoGenerationInterface
 * and it will be managed by you, not axtiva/flexible-graphql-php code generator
 * PHP representation of graphql type DefaultProgressInfo
 * This object contains information about a background task execution progress. */
final class DefaultProgressInfoType implements AutoGenerationInterface, ProgressInfoInterface
{
    /**
     * The current action being performed. Can be empty or null.
     */
    public ?string $action = null;
    /**
     * A message that describes the completion status once the task is completed or canceled.
     */
    public ?string $completionMessage = null;
    /**
     * The current value for the operation's progress. Together with the maxValue, you can calculate the percentage.
     */
    public ?int $currentValue = null;
    /**
     * The error object. The error object type depends on the type of action.
     */
    public $errorObject = null;
    /**
     * The exception, that occurred during the execution of the monitored operation.
     */
    public $exception = null;
    /**
     * Is the task failed?
     */
    public bool $hasFailed;
    /**
     * Is the task finished?
     */
    public bool $isFinished;
    /**
     * The maximum value for the operation's progress. A max value < 0 indicates, that the maximum value is not known for this operation.
     */
    public ?int $maxValue = null;
    /**
     * The operationId identifies a specific operation. Use this operationId to poll the current status.
     */
    public string $operationId;
    /**
     * The result if there is one.
     */
    public $resultObject = null;
    /**
     * The current sub-action being performed. Can be empty or null.
     */
    public ?string $subaction = null;
}