mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Code cleanup.
This commit is contained in:
@@ -18,10 +18,10 @@ use FireflyIII\Models\Account;
|
||||
*/
|
||||
class EntryAccount
|
||||
{
|
||||
/** @var int */
|
||||
public $accountId;
|
||||
/** @var string */
|
||||
public $iban;
|
||||
/** @var int */
|
||||
public $id;
|
||||
/** @var string */
|
||||
public $name;
|
||||
/** @var int */
|
||||
@@ -36,10 +36,10 @@ class EntryAccount
|
||||
*/
|
||||
public function __construct(Account $account)
|
||||
{
|
||||
$this->id = $account->id;
|
||||
$this->name = $account->name;
|
||||
$this->iban = $account->iban;
|
||||
$this->type = $account->accountType->type;
|
||||
$this->number = $account->getMeta('accountNumber');
|
||||
$this->accountId = $account->id;
|
||||
$this->name = $account->name;
|
||||
$this->iban = $account->iban;
|
||||
$this->type = $account->accountType->type;
|
||||
$this->number = $account->getMeta('accountNumber');
|
||||
}
|
||||
}
|
@@ -19,7 +19,7 @@ use FireflyIII\Models\Bill;
|
||||
class EntryBill
|
||||
{
|
||||
/** @var string */
|
||||
public $id = '';
|
||||
public $billId = '';
|
||||
/** @var string */
|
||||
public $name = '';
|
||||
|
||||
@@ -31,8 +31,8 @@ class EntryBill
|
||||
public function __construct(Bill $bill = null)
|
||||
{
|
||||
if (!is_null($bill)) {
|
||||
$this->id = $bill->id;
|
||||
$this->name = $bill->name;
|
||||
$this->billId = $bill->id;
|
||||
$this->name = $bill->name;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,7 @@ use FireflyIII\Models\Budget;
|
||||
class EntryBudget
|
||||
{
|
||||
/** @var string */
|
||||
public $id = '';
|
||||
public $budgetId = '';
|
||||
/** @var string */
|
||||
public $name = '';
|
||||
|
||||
@@ -31,8 +31,8 @@ class EntryBudget
|
||||
public function __construct(Budget $budget = null)
|
||||
{
|
||||
if (!is_null($budget)) {
|
||||
$this->id = $budget->id;
|
||||
$this->name = $budget->name;
|
||||
$this->budgetId = $budget->id;
|
||||
$this->name = $budget->name;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,7 @@ use FireflyIII\Models\Category;
|
||||
class EntryCategory
|
||||
{
|
||||
/** @var string */
|
||||
public $id = '';
|
||||
public $categoryId = '';
|
||||
/** @var string */
|
||||
public $name = '';
|
||||
|
||||
@@ -31,8 +31,8 @@ class EntryCategory
|
||||
public function __construct(Category $category = null)
|
||||
{
|
||||
if (!is_null($category)) {
|
||||
$this->id = $category->id;
|
||||
$this->name = $category->name;
|
||||
$this->categoryId = $category->id;
|
||||
$this->name = $category->name;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user