Add field. Also limit range.

This commit is contained in:
James Cole 2016-02-17 20:24:59 +01:00
parent 0ba9389ca2
commit 7cb86d0254

View File

@ -23,7 +23,10 @@ use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
class TransactionMatcher class TransactionMatcher
{ {
/** @var int Maximum number of transaction to search in (for performance reasons) * */ /** @var int Maximum number of transaction to search in (for performance reasons) * */
private $range = 1000; private $range = 200;
/** @var int */
private $limit = 10;
/** @var array */ /** @var array */
protected $transactionTypes = [TransactionType::DEPOSIT, TransactionType::WITHDRAWAL, TransactionType::TRANSFER]; protected $transactionTypes = [TransactionType::DEPOSIT, TransactionType::WITHDRAWAL, TransactionType::TRANSFER];
/** @var array List of triggers to match */ /** @var array List of triggers to match */