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