mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 20:38:57 +00:00
Some cleaning up. About to release 3.2.1
This commit is contained in:
@@ -14,13 +14,10 @@ class PiggybankPart
|
||||
{
|
||||
/** @var float */
|
||||
public $amountPerBar;
|
||||
|
||||
/** @var float */
|
||||
public $currentamount;
|
||||
|
||||
/** @var float */
|
||||
public $cumulativeAmount;
|
||||
|
||||
/** @var float */
|
||||
public $currentamount;
|
||||
/** @var \Reminder */
|
||||
public $reminder;
|
||||
|
||||
@@ -38,11 +35,12 @@ class PiggybankPart
|
||||
*/
|
||||
public function getReminder()
|
||||
{
|
||||
if(is_null($this->reminder)) {
|
||||
if (is_null($this->reminder)) {
|
||||
$this->reminder = $this->repetition->piggybank->reminders()->where('startdate', $bar->getStartdate()->format('Y-m-d'))->where(
|
||||
'enddate', $bar->getTargetdate()->format('Y-m-d')
|
||||
)->first();
|
||||
}
|
||||
|
||||
return $this->reminder;
|
||||
}
|
||||
|
||||
@@ -145,22 +143,6 @@ class PiggybankPart
|
||||
$this->currentamount = $currentamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getAmountPerBar()
|
||||
{
|
||||
return $this->amountPerBar;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $amountPerBar
|
||||
*/
|
||||
public function setAmountPerBar($amountPerBar)
|
||||
{
|
||||
$this->amountPerBar = $amountPerBar;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
@@ -177,7 +159,21 @@ class PiggybankPart
|
||||
$this->cumulativeAmount = $cumulativeAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getAmountPerBar()
|
||||
{
|
||||
return $this->amountPerBar;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $amountPerBar
|
||||
*/
|
||||
public function setAmountPerBar($amountPerBar)
|
||||
{
|
||||
$this->amountPerBar = $amountPerBar;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user