Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * This file is part of the sshilko/php-sql-mydb package. |
4 | * |
5 | * (c) Sergei Shilko <contact@sshilko.com> |
6 | * |
7 | * MIT License |
8 | * |
9 | * For the full copyright and license information, please view the LICENSE |
10 | * file that was distributed with this source code. |
11 | * @license https://opensource.org/licenses/mit-license.php MIT |
12 | */ |
13 | |
14 | declare(strict_types = 1); |
15 | |
16 | namespace sql; |
17 | |
18 | use const E_ALL; |
19 | use const E_STRICT; |
20 | |
21 | /** |
22 | * @author Sergei Shilko <contact@sshilko.com> |
23 | * @license https://opensource.org/licenses/mit-license.php MIT |
24 | * @see https://github.com/sshilko/php-sql-mydb |
25 | */ |
26 | interface MydbEnvironmentInterface |
27 | { |
28 | |
29 | /** |
30 | * @SuppressWarnings("camelCase") |
31 | * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
32 | */ |
33 | public function gc_collect_cycles(): void; |
34 | |
35 | /** |
36 | * @SuppressWarnings("camelCase") |
37 | * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
38 | */ |
39 | public function restore_error_handler(): void; |
40 | |
41 | /** |
42 | * @SuppressWarnings("camelCase") |
43 | * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
44 | */ |
45 | public function set_error_handler(?callable $callback = null, int $error_levels = E_ALL|E_STRICT): void; |
46 | |
47 | public function setMysqlndNetReadTimeout(string $timeoutSeconds): bool; |
48 | |
49 | /** |
50 | * @SuppressWarnings("camelCase") |
51 | * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
52 | */ |
53 | public function error_reporting(int $level): int; |
54 | |
55 | /** |
56 | * @SuppressWarnings("camelCase") |
57 | * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
58 | */ |
59 | public function ignore_user_abort(): int; |
60 | |
61 | /** |
62 | * @SuppressWarnings("camelCase") |
63 | * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
64 | */ |
65 | public function ini_set(string $key, string $value): string; |
66 | |
67 | public function endSignalsTrap(): ?array; |
68 | |
69 | public function startSignalsTrap(): void; |
70 | } |