* * 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 * @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; }