Some cleaning up. About to release 3.2.1

This commit is contained in:
James Cole
2014-12-15 19:39:01 +01:00
parent 16678aa5e1
commit b999a8f0fb
10 changed files with 74 additions and 58 deletions

View File

@@ -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;
}
}