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