private static function setTime($timestamp) { $handler = function () use($timestamp) { return $timestamp; }; uopz_function('time', $handler); uopz_function('DateTime', 'getTimestamp', $handler); }