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