Library/Cache/SlotsCache.php
public static function getFunctionSlot($functionName)
    {
        if (isset(self::$cacheFunctionSlots[$functionName])) {
            return self::$cacheFunctionSlots[$functionName];
        }

        $slot = self::$slot++;
        if ($slot >= self::MAX_SLOTS_NUMBER) {
            return 0;
        }

        self::$cacheFunctionSlots[$functionName] = $slot;

        return $slot;
    }
public static function getFunctionSlot($functionName)
    {
        if (isset(self::$cacheFunctionSlots[$functionName])) {
            return self::$cacheFunctionSlots[$functionName];
        }

        $slot = self::$slot++;
        if ($slot >= self::MAX_SLOTS_NUMBER) {
            return 0;
        }

        self::$cacheFunctionSlots[$functionName] = $slot;

        return $slot;
    }
public static function getFunctionSlot ( $ functionName ) { if ( isset ( self :: $ cacheFunctionSlots [ $ functionName ] ) ) { return self :: $ cacheFunctionSlots [ $ functionName ] ; } $ slot = self :: $ slot ++ ; if ( $ slot >= self :: MAX_SLOTS_NUMBER ) { return 0 ; } self :: $ cacheFunctionSlots [ $ functionName ] = $ slot ; return $ slot ; }
Returns or creates a cache slot for a function.

@param string $functionName

@return int
Returns or creates a cache slot for a function .