From 49211482b0abc485de4f4b10414a06b81db54fdf Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 17 Feb 2016 20:25:54 +0100 Subject: [PATCH] New getters and setters. --- app/Rules/TransactionMatcher.php | 40 ++++++++++++-------------------- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/app/Rules/TransactionMatcher.php b/app/Rules/TransactionMatcher.php index b928cdc48f..9570c871c1 100644 --- a/app/Rules/TransactionMatcher.php +++ b/app/Rules/TransactionMatcher.php @@ -99,31 +99,35 @@ class TransactionMatcher } /** - * @return array + * @return int */ - public function getTransactionLimit() + public function getRange() { return $this->range; } /** - * @return array + * @param int $range */ - public function getTransactionTypes() + public function setRange($range) { - return $this->transactionTypes; + $this->range = $range; } /** - * @param array $transactionTypes - * - * @return $this + * @return int */ - public function setTransactionTypes(array $transactionTypes) + public function getLimit() { - $this->transactionTypes = $transactionTypes; + return $this->limit; + } - return $this; + /** + * @param int $limit + */ + public function setLimit($limit) + { + $this->limit = $limit; } /** @@ -136,26 +140,12 @@ class TransactionMatcher /** * @param array $triggers - * - * @return $this */ public function setTriggers($triggers) { $this->triggers = $triggers; - - return $this; } - /** - * @param int $limit - * - * @return $this - */ - public function setTransactionLimit(int $limit) - { - $this->range = $limit; - return $this; - } }