1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Models/Bank.php

29 lines
439 B
PHP
Raw Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Models;
2016-01-20 00:07:31 +01:00
use Eloquent;
/**
2017-01-30 20:40:43 +01:00
* 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
2017-01-30 20:40:43 +01:00
*
* @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);
}
}