Last active
August 18, 2022 16:56
-
-
Save ismail1432/0913f5adffbe837ab33ea9e647f0977b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class TimeoutMaxDuration | |
{ | |
private const DEFAULT = 10; | |
// let's set 10 seconds by default; | |
public static int $timeout = self::DEFAULT; | |
public static function resetTimeout(): void | |
{ | |
self::$timeout = self::DEFAULT; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment