1 | <?php |
||
2 | |||
3 | namespace GeekLab\GLPDO2\Bindings; |
||
4 | |||
5 | use Exception; |
||
6 | |||
7 | interface DateTimeBindingInterface |
||
8 | { |
||
9 | /** |
||
10 | * Bind a date value as date or optional NULL. |
||
11 | * YYYY-MM-DD is the proper date format. |
||
12 | * |
||
13 | * @param string|null $value |
||
14 | * @param bool $null |
||
15 | * |
||
16 | * @return array{?string, int} |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
17 | * @throws Exception |
||
18 | */ |
||
19 | public function bDate(?string $value, bool $null = false): array; |
||
20 | |||
21 | /** |
||
22 | * Bind a date value as date time or optional NULL. |
||
23 | * YYYY-MM-DD HH:MM:SS is the proper date format. |
||
24 | * |
||
25 | * @param string | null $value |
||
26 | * @param bool $null |
||
27 | * |
||
28 | * @return array{?string, int} |
||
0 ignored issues
–
show
|
|||
29 | * @throws Exception |
||
30 | */ |
||
31 | public function bDateTime(?string $value = null, bool $null = false): array; |
||
32 | } |
||
33 |