firefly-iii/app/models/Budget.php

29 lines
585 B
PHP
Raw Normal View History

<?php
2014-12-13 14:59:02 -06:00
/**
* Class Budget
*/
class Budget extends Component
{
2014-12-14 13:40:02 -06:00
// @codingStandardsIgnoreStart
protected $isSubclass = true;
2014-12-14 13:40:02 -06:00
// @codingStandardsIgnoreEnd
2014-12-13 14:59:02 -06:00
/**
* @return \Illuminate\Database\Eloquent\Relations\HasManyThrough
*/
2014-11-21 04:11:52 -06:00
public function limitrepetitions()
{
2014-12-13 14:59:02 -06:00
return $this->hasManyThrough('LimitRepetition', 'BudgetLimit', 'component_id');
2014-11-21 04:11:52 -06:00
}
2014-08-10 11:22:42 -05:00
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
2014-12-13 14:59:02 -06:00
public function budgetlimits()
{
2014-12-13 14:59:02 -06:00
return $this->hasMany('BudgetLimit', 'component_id');
}
}