mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
29 lines
585 B
PHP
29 lines
585 B
PHP
<?php
|
|
|
|
/**
|
|
* Class Budget
|
|
*/
|
|
class Budget extends Component
|
|
{
|
|
// @codingStandardsIgnoreStart
|
|
protected $isSubclass = true;
|
|
// @codingStandardsIgnoreEnd
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasManyThrough
|
|
*/
|
|
public function limitrepetitions()
|
|
{
|
|
return $this->hasManyThrough('LimitRepetition', 'BudgetLimit', 'component_id');
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function budgetlimits()
|
|
{
|
|
return $this->hasMany('BudgetLimit', 'component_id');
|
|
}
|
|
|
|
|
|
}
|