Files
firefly-iii/app/Models/PiggyBankRepetition.php

30 lines
535 B
PHP
Raw Normal View History

2015-02-06 04:52:16 +01:00
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
2015-02-11 07:35:10 +01:00
/**
* Class PiggyBankRepetition
*
* @package FireflyIII\Models
*/
2015-02-06 05:04:06 +01:00
class PiggyBankRepetition extends Model
{
2015-02-06 04:52:16 +01:00
2015-02-11 07:35:10 +01:00
/**
* @return array
*/
2015-02-07 13:15:40 +01:00
public function getDates()
2015-02-06 05:14:27 +01:00
{
2015-02-07 13:15:40 +01:00
return ['created_at', 'updated_at', 'startdate', 'targetdate'];
2015-02-06 05:14:27 +01:00
}
2015-02-07 13:15:40 +01:00
2015-02-11 07:35:10 +01:00
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
2015-02-07 13:15:40 +01:00
public function piggyBank()
2015-02-07 12:15:53 +01:00
{
2015-02-07 13:15:40 +01:00
return $this->belongsTo('FireflyIII\Models\PiggyBank');
2015-02-07 12:15:53 +01:00
}
2015-02-06 04:52:16 +01:00
}