Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress: getCurrent() & getTotal() #192

Closed
quasipickle opened this issue Mar 29, 2022 · 2 comments
Closed

Progress: getCurrent() & getTotal() #192

quasipickle opened this issue Mar 29, 2022 · 2 comments

Comments

@quasipickle
Copy link
Contributor

quasipickle commented Mar 29, 2022

It would be useful to be able to retrieve the current & total values from a progress bar.

My use case is that I define the progress bar in one method in a class, then use it in other methods. I'd like my label to be updated with the count, ie (23/1176) without having to track those numbers separately.

I'm happy to do this & submit a PR, but I wonder if this package is actively maintained?

everton3x added a commit to everton3x/climate that referenced this issue Oct 30, 2024
…value of the progress bar.

This commit dds methods in Progress to return the current value and total value of the progress bar.

Tests not included because they are simple access methods to private properties of the class.

Issue thephpleague#192
everton3x added a commit to everton3x/climate that referenced this issue Oct 30, 2024
…value of the progress bar.

This commit adds methods in Progress to return the current value and total value of the progress bar.

Issue thephpleague#192
@everton3x
Copy link
Contributor

Added on PR #206 .

@duncan3dc
Copy link
Member

Fixed in 3.10.0 thanks to @everton3x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants