public static function freeze($date = null)
    {
        self::$freeze = false;
        self::$freezeDate = $date ? new DateTime($date) : self::now();
        self::$freeze = true;
    }
public static function freeze($date = null)
    {
        self::$freeze = false;
        self::$freezeDate = $date ? new DateTime($date) : self::now();
        self::$freeze = true;
    }
public static function freeze ( $ date = null ) { self :: $ freeze = false ; self :: $ freezeDate = $ date ? new DateTime ( $ date ) : self :: now ( ) ; self :: $ freeze = true ; }
Freezes time to a specific point or current time if no time is given.

@param null $date
Freezes time to a specific point or current time if no time is given .