diff --git a/src/TerminalObject/Dynamic/Progress.php b/src/TerminalObject/Dynamic/Progress.php index e673eda..7cb4e3d 100644 --- a/src/TerminalObject/Dynamic/Progress.php +++ b/src/TerminalObject/Dynamic/Progress.php @@ -312,4 +312,24 @@ protected function shouldRedraw($percentage, $label) { return ($this->force_redraw || $percentage != $this->current_percentage || $label != $this->label); } + + /** + * Gets the current progress value. + * + * @return int the current progress value. + */ + public function getCurrent() + { + return $this->current; + } + + /** + * Gets the total value for progress. + * + * @return int The total progress value. + */ + public function getTotal() + { + return $this->total; + } }