Issues (48)

src/Bindings/NumericBindingInterface.php (4 issues)

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
The doc comment array{?string} at position 2 could not be parsed: Expected ':' at position 2, but found '?string'.
Loading history...
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
Documentation Bug introduced by
The doc comment array{?int, int} at position 2 could not be parsed: Expected ':' at position 2, but found '?int'.
Loading history...
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
Documentation Bug introduced by
The doc comment array{} | array{mixed} at position 6 could not be parsed: Expected ':' at position 6, but found 'mixed'.
Loading history...
37
     *
38
     * @return array{string}
0 ignored issues
show
Documentation Bug introduced by
The doc comment array{string} at position 2 could not be parsed: Expected ':' at position 2, but found 'string'.
Loading history...
39
     * @throws Exception
40
     */
41
    public function bIntArray(array $data): array;
42
}
43