mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
30 lines
535 B
PHP
30 lines
535 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class PiggyBankRepetition
|
|
*
|
|
* @package FireflyIII\Models
|
|
*/
|
|
class PiggyBankRepetition extends Model
|
|
{
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getDates()
|
|
{
|
|
return ['created_at', 'updated_at', 'startdate', 'targetdate'];
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function piggyBank()
|
|
{
|
|
return $this->belongsTo('FireflyIII\Models\PiggyBank');
|
|
}
|
|
|
|
}
|