1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/app/Factory/BankIntegrationFactory.php

38 lines
1.1 KiB
PHP
Raw Normal View History

2022-08-05 11:05:59 +02:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-28 23:21:40 +01:00
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
2022-08-05 11:05:59 +02:00
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Factory;
use App\Models\BankIntegration;
class BankIntegrationFactory
{
2024-01-14 05:05:00 +01:00
public static function create(int $company_id, int $user_id, int $account_id): BankIntegration
2022-08-05 11:05:59 +02:00
{
2024-01-14 05:05:00 +01:00
$bank_integration = new BankIntegration();
2022-08-05 11:05:59 +02:00
$bank_integration->account_id = $account_id;
$bank_integration->user_id = $user_id;
$bank_integration->company_id = $company_id;
$bank_integration->provider_name = '';
2022-08-05 11:05:59 +02:00
$bank_integration->bank_account_id = '';
$bank_integration->bank_account_name = '';
$bank_integration->bank_account_number = '';
$bank_integration->bank_account_status = '';
$bank_integration->bank_account_type = '';
$bank_integration->balance = 0;
$bank_integration->currency = '';
2023-10-24 03:50:10 +02:00
$bank_integration->auto_sync = 1;
2024-01-14 05:05:00 +01:00
2022-08-05 11:05:59 +02:00
return $bank_integration;
}
}