-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSqlDialect.php
More file actions
32 lines (28 loc) · 964 Bytes
/
Copy pathSqlDialect.php
File metadata and controls
32 lines (28 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
declare(strict_types=1);
/**
* This file is part of the MultiFlexi package
*
* https://github.com/VitexSoftware/php-vitexsoftware-rbczpremiumapi
*
* (c) Vítězslav Dvořák <http://vitexsoftware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace VitexSoftware\Raiffeisenbank\RateLimit;
interface SqlDialect
{
/**
* Get the current time as a Unix timestamp.
*
* @return int The current Unix timestamp (seconds since the Unix epoch).
*/
public function now(): int; /**
* Generate a SQL parameter placeholder for the given parameter name.
*
* @param string $name Logical parameter name (without any placeholder prefix characters).
* @return string The SQL placeholder string to use in queries (for example `:name`, `?`, or `@name` depending on the dialect).
*/
public function placeholder(string $name): string; // :name, ?, @name ...
}