1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/Models/Bank.php

26 lines
430 B
PHP
Raw Normal View History

2016-01-20 00:07:31 +01:00
<?php namespace App\Models;
use Eloquent;
/**
* Class Bank
*/
2016-01-20 00:07:31 +01:00
class Bank extends Eloquent
{
/**
* @var bool
*/
2016-01-20 00:07:31 +01:00
public $timestamps = false;
/**
* @param $finance
* @return \App\Libraries\Bank
*/
2016-01-20 00:07:31 +01:00
public function getOFXBank($finance)
{
$config = json_decode($this->config);
return new \App\Libraries\Bank($finance, $config->fid, $config->url, $config->org);
}
}