Blame view
app/Support/AppTime.php
395 Bytes
e77200db5 Initial commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?php namespace FootyRoom\Support; class AppTime { protected static $timestamp = NULL; public static function now() { return self::$timestamp !== NULL ? self::$timestamp : time(); } public static function setTime(int $timestamp) { self::$timestamp = $timestamp; } public static function reset() { self::$timestamp = NULL; } } |