Beispiel #1
0
 public static function get()
 {
     self::$counter--;
     if (!self::$cache || !self::$counter) {
         self::$counter = self::getCount();
         self::$cache = self::getCache();
         if (!isset(self::$sum[self::$cache])) {
             self::$sum[self::$cache] = 0;
         }
     }
     self::$sum[self::$cache]++;
     return self::$cache;
 }