Skip to content

Commit

Permalink
shoppingflux#18 - renaming method and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ddattee committed Jun 6, 2018
1 parent 44fe7b5 commit ce5d8b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Resource/AbstractDomainResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function createPaginator(PaginationCriterias $criterias)
{
$resource = $this->link->get(
[],
['query' => $criterias->getAsQueryParam()]
['query' => $criterias->asQueryParams()]
);

if (! $resource) {
Expand Down
4 changes: 2 additions & 2 deletions src/Resource/PaginationCriterias.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public function getFilters()


/**
* @param PaginationCriterias $criterias
* Convert criterias as ready to be added to URL
*
* @return array
*/
public function getAsQueryParam()
public function asQueryParams()
{
$query = array_map(
'intval',
Expand Down

0 comments on commit ce5d8b2

Please sign in to comment.