Skip to content

Commit

Permalink
Merge pull request #173 from tscheepers/patch-1
Browse files Browse the repository at this point in the history
Added parameter argument for retrieving lists
  • Loading branch information
stephangroen authored Feb 6, 2019
2 parents 38c747d + 24af719 commit 129de52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Picqer/Financials/Moneybird/Actions/FindAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ trait FindAll
use BaseTrait;

/**
* @param array $params
*
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
*/
public function get()
public function get($params = [])
{
$result = $this->connection()->get($this->getEndpoint());
$result = $this->connection()->get($this->getEndpoint(), $params);

return $this->collectionFromResult($result);
}

/**
* @param array $params
*
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand Down

0 comments on commit 129de52

Please sign in to comment.