Skip to content

Commit

Permalink
refactor(RecollectionDecorator): rename withCriteria to `applyCri…
Browse files Browse the repository at this point in the history
…teria` (#34)
  • Loading branch information
priyadi authored Jun 20, 2024
1 parent a49f848 commit d1b6980
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Changelog

## 0.3.1
## 0.4.0

* refactor: reorganize exceptions
* feat: add `getOrFail()`
* feat: add `QueryPageable`
* feat: repository interfaces
* refactor: rename `createFrom()` to `with()`
* refactor: rename the term 'safe' to 'large'
* refactor(`RecollectionDecorator`): rename `withCriteria` to `applyCriteria`

## 0.3.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function with(
* @param null|int<0,max> $count
* @return LargeCriteriaRecollection<TKey,T>
*/
protected function withCriteria(
protected function applyCriteria(
Criteria $criteria,
CountStrategy $countStrategy = CountStrategy::Restrict,
?int &$count = null,
Expand Down
2 changes: 1 addition & 1 deletion packages/collections-domain/src/RecollectionDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function with(
* @param null|int<0,max> $count
* @return CriteriaRecollection<TKey,T>
*/
protected function withCriteria(
protected function applyCriteria(
Criteria $criteria,
CountStrategy $countStrategy = CountStrategy::Restrict,
?int &$count = null,
Expand Down

0 comments on commit d1b6980

Please sign in to comment.