26 lines
638 B
PHP
26 lines
638 B
PHP
<?php
|
|
/**
|
|
* @package Bicycle
|
|
* @author Egor Isaev
|
|
* @description TransactionRepository.php
|
|
* @copyright (c) 11/08/2026
|
|
*/
|
|
|
|
namespace App\Repositories;
|
|
|
|
use System\Classes\Repository;
|
|
|
|
/**
|
|
* Репозиторий таблицы transactions (income/expense/transfer).
|
|
*/
|
|
class TransactionRepository extends Repository
|
|
{
|
|
/**
|
|
* @param string|null $connection Имя подключения (Database::instance($connection)); null — по умолчанию
|
|
*/
|
|
public function __construct(?string $connection = null)
|
|
{
|
|
parent::__construct('transactions', connection: $connection);
|
|
}
|
|
}
|