From a9356ca1e2ad6223ca94d03ebf5f87f5fcaf62d7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 11 Mar 2018 13:30:58 +0100 Subject: [PATCH] Mark methods as deprecated. --- app/Models/Account.php | 4 ++-- app/Models/TransactionJournal.php | 2 +- app/Repositories/Journal/JournalTaskerInterface.php | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 6771ef16fc..53c9e43aee 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -190,7 +190,7 @@ class Account extends Model * @codeCoverageIgnore * * @param string $fieldName - * + * @deprecated * @return string */ public function getMeta(string $fieldName): string @@ -274,7 +274,7 @@ class Account extends Model /** * @codeCoverageIgnore - * + * @deprecated * @param EloquentBuilder $query * @param string $name * @param string $value diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.php index 7694cd82f9..772ff9d2f6 100644 --- a/app/Models/TransactionJournal.php +++ b/app/Models/TransactionJournal.php @@ -219,7 +219,7 @@ class TransactionJournal extends Model * @codeCoverageIgnore * * @param string $name - * + * @deprecated * @return bool */ public function hasMeta(string $name): bool diff --git a/app/Repositories/Journal/JournalTaskerInterface.php b/app/Repositories/Journal/JournalTaskerInterface.php index 06d9294654..59ba988f67 100644 --- a/app/Repositories/Journal/JournalTaskerInterface.php +++ b/app/Repositories/Journal/JournalTaskerInterface.php @@ -34,6 +34,7 @@ interface JournalTaskerInterface /** * @param TransactionJournal $journal * + * @deprecated * @return Collection */ public function getPiggyBankEvents(TransactionJournal $journal): Collection; @@ -42,6 +43,8 @@ interface JournalTaskerInterface * Get an overview of the transactions of a journal, tailored to the view * that shows a transaction (transaction/show/xx). * + * @deprecated + * * @param TransactionJournal $journal * * @return array