-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMydbEnvironmentInterface.php
More file actions
70 lines (57 loc) · 1.86 KB
/
MydbEnvironmentInterface.php
File metadata and controls
70 lines (57 loc) · 1.86 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* This file is part of the sshilko/php-sql-mydb package.
*
* (c) Sergei Shilko <contact@sshilko.com>
*
* MIT License
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @license https://opensource.org/licenses/mit-license.php MIT
*/
declare(strict_types = 1);
namespace sql;
use const E_ALL;
use const E_STRICT;
/**
* @author Sergei Shilko <contact@sshilko.com>
* @license https://opensource.org/licenses/mit-license.php MIT
* @see https://github.com/sshilko/php-sql-mydb
*/
interface MydbEnvironmentInterface
{
/**
* @SuppressWarnings("camelCase")
* @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
public function gc_collect_cycles(): void;
/**
* @SuppressWarnings("camelCase")
* @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
public function restore_error_handler(): void;
/**
* @SuppressWarnings("camelCase")
* @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
public function set_error_handler(?callable $callback = null, int $error_levels = E_ALL|E_STRICT): void;
public function setMysqlndNetReadTimeout(string $timeoutSeconds): bool;
/**
* @SuppressWarnings("camelCase")
* @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
public function error_reporting(int $level): int;
/**
* @SuppressWarnings("camelCase")
* @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
public function ignore_user_abort(): int;
/**
* @SuppressWarnings("camelCase")
* @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
public function ini_set(string $key, string $value): string;
public function endSignalsTrap(): ?array;
public function startSignalsTrap(): void;
}