24 lines
324 B
PHP
24 lines
324 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Support\Database;
|
|
use PDO;
|
|
|
|
abstract class BaseRepository
|
|
{
|
|
protected PDO $db;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->db = Database::connection();
|
|
}
|
|
|
|
protected function now(): string
|
|
{
|
|
return gmdate('c');
|
|
}
|
|
}
|