mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some code optimalisations.
This commit is contained in:
@@ -37,6 +37,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
* @property int $transaction_currency_id
|
||||
* @property string $amount_min
|
||||
* @property string $amount_max
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
*/
|
||||
class Bill extends Model
|
||||
{
|
||||
|
||||
@@ -31,6 +31,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/**
|
||||
* Class Budget.
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
*/
|
||||
class Budget extends Model
|
||||
{
|
||||
|
||||
@@ -31,6 +31,9 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/**
|
||||
* Class Category.
|
||||
*
|
||||
* @property string $name
|
||||
* @property int $id
|
||||
*/
|
||||
class Category extends Model
|
||||
{
|
||||
|
||||
@@ -26,6 +26,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class Note.
|
||||
*
|
||||
* @property string $text
|
||||
*/
|
||||
class Note extends Model
|
||||
{
|
||||
|
||||
@@ -36,6 +36,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
* @property Carbon $targetdate
|
||||
* @property Carbon $startdate
|
||||
* @property string $targetamount
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
*
|
||||
*/
|
||||
class PiggyBank extends Model
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace FireflyIII\Models;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
@@ -252,18 +253,18 @@ class Transaction extends Model
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function transactionCurrency()
|
||||
public function transactionCurrency(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(TransactionCurrency::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function transactionJournal()
|
||||
public function transactionJournal(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(TransactionJournal::class);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
* Class TransactionCurrency.
|
||||
*
|
||||
* @property string $code
|
||||
* @property string $symbol
|
||||
* @property int $decimal_places
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user