budget ?? new BudgetModel; } /** * @param BudgetModel $budget * * @return BudgetLine */ public function setBudget(BudgetModel $budget): BudgetLine { $this->budget = $budget; return $this; } /** * @return string */ public function getBudgeted(): string { return $this->budgeted; } /** * @param string $budgeted * * @return BudgetLine */ public function setBudgeted(string $budgeted): BudgetLine { $this->budgeted = $budgeted; return $this; } /** * @return string */ public function getLeft(): string { return $this->left; } /** * @param string $left * * @return BudgetLine */ public function setLeft(string $left): BudgetLine { $this->left = $left; return $this; } /** * @return string */ public function getOverspent(): string { return $this->overspent; } /** * @param string $overspent * * @return BudgetLine */ public function setOverspent(string $overspent): BudgetLine { $this->overspent = $overspent; return $this; } /** * @return LimitRepetition */ public function getRepetition(): LimitRepetition { return $this->repetition ?? new LimitRepetition; } /** * @param LimitRepetition $repetition * * @return BudgetLine */ public function setRepetition(LimitRepetition $repetition): BudgetLine { $this->repetition = $repetition; return $this; } /** * @return string */ public function getSpent(): string { return $this->spent; } /** * @param string $spent * * @return BudgetLine */ public function setSpent(string $spent): BudgetLine { $this->spent = $spent; return $this; } }