Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
feat(QueryRequest): add with total request interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Schulze committed Sep 3, 2015
1 parent ecc5666 commit c1059ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Request/AbstractQueryRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
abstract class AbstractQueryRequest extends AbstractApiRequest implements
SortRequestInterface,
QueryRequestInterface,
PageRequestInterface
PageRequestInterface,
WithTotalRequestInterface
{
use QueryTrait;
use PageTrait;
Expand Down
16 changes: 16 additions & 0 deletions src/Request/WithTotalRequestInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* @author @ct-jensschulze <jens.schulze@commercetools.de>
*/

namespace Commercetools\Core\Request;


interface WithTotalRequestInterface
{
/**
* @param bool $withTotal
* @return $this
*/
public function withTotal($withTotal);
}

0 comments on commit c1059ee

Please # to comment.