<?php

declare(strict_types=1);

namespace App\Repositories;

use App\Core\Database;
use App\Core\Repository;

/**
 * Phase 3 example showing where database queries belong.
 * Feature-specific repositories will be added in their respective phases.
 */
final class ExampleRepository extends Repository
{
    public function __construct()
    {
        parent::__construct(Database::connection());
    }

    public function connectionDriver(): string
    {
        return (string) $this->db->getAttribute(\PDO::ATTR_DRIVER_NAME);
    }
}
