1 | <?php |
||
2 | |||
3 | namespace GeekLab\GLPDO2\Bindings; |
||
4 | |||
5 | use Exception; |
||
6 | |||
7 | interface NumericBindingInterface |
||
8 | { |
||
9 | /** |
||
10 | * Bind a float. |
||
11 | * |
||
12 | * @param float | int | string | null $value |
||
13 | * @param int $decimals |
||
14 | * @param bool $null |
||
15 | * |
||
16 | * @return array{?string} |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
17 | * @throws Exception |
||
18 | */ |
||
19 | public function bFloat(float | int | string | null $value = null, int $decimals = 3, bool $null = false): array; |
||
20 | |||
21 | /** |
||
22 | * Bind an integer with optional NULL. |
||
23 | * |
||
24 | * @param float | bool | int | string | null $value |
||
25 | * @param bool $null |
||
26 | * |
||
27 | * @return array{?int, int} |
||
0 ignored issues
–
show
|
|||
28 | * @throws Exception |
||
29 | */ |
||
30 | public function bInt(float | bool | int | string | null $value = null, bool $null = false): array; |
||
31 | |||
32 | /** |
||
33 | * Convert array of integers to comma separated values. Uses %% |
||
34 | * Great for IN() statements. |
||
35 | * |
||
36 | * @param array{} | array{mixed} $data |
||
0 ignored issues
–
show
|
|||
37 | * |
||
38 | * @return array{string} |
||
0 ignored issues
–
show
|
|||
39 | * @throws Exception |
||
40 | */ |
||
41 | public function bIntArray(array $data): array; |
||
42 | } |
||
43 |