Skip to content

Add methods PaginatorInterface::isSortable() and PaginatorInterface::withSort()#158

Merged
vjik merged 6 commits intomasterfrom
paginator
Jan 24, 2024
Merged

Add methods PaginatorInterface::isSortable() and PaginatorInterface::withSort()#158
vjik merged 6 commits intomasterfrom
paginator

Conversation

@vjik
Copy link
Member

@vjik vjik commented Jan 23, 2024

Q A
Is bugfix?
New feature? ✔️
Breaks BC? ✔️

@vjik vjik changed the title Add methods PaginatorInterface::isSupportSorting() and PaginatorInterface::withSort() Add methods PaginatorInterface::isSupportSorting() and PaginatorInterface::withSort() Jan 23, 2024
@vjik vjik added the status:code review The pull request needs review. label Jan 23, 2024
@vjik vjik requested a review from a team January 23, 2024 13:17
@codecov
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bef4fde) 100.00% compared to head (59dd243) 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##              master      #158   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       270       275    +5     
===========================================
  Files             36        36           
  Lines            682       696   +14     
===========================================
+ Hits             682       696   +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return $this->isOnLastPage() ? null : $this->currentLastValue;
}

public function isSupportSorting(): bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function isSupportSorting(): bool
public function isSortable(): bool

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@vjik vjik changed the title Add methods PaginatorInterface::isSupportSorting() and PaginatorInterface::withSort() Add methods PaginatorInterface::isSortable() and PaginatorInterface::withSort() Jan 24, 2024
@vjik vjik merged commit 91295cc into master Jan 24, 2024
@vjik vjik deleted the paginator branch January 24, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants