classes/phing/system/util/Register.php
public static function getSlot($key)
    {
        if (!isset(self::$slots[$key])) {
            self::$slots[$key] = new RegisterSlot($key);
        }

        return self::$slots[$key];
    }
public static function getSlot($key)
    {
        if (!isset(self::$slots[$key])) {
            self::$slots[$key] = new RegisterSlot($key);
        }

        return self::$slots[$key];
    }
public static function getSlot ( $ key ) { if ( ! isset ( self :: $ slots [ $ key ] ) ) { self :: $ slots [ $ key ] = new RegisterSlot ( $ key ) ; } return self :: $ slots [ $ key ] ; }
Returns RegisterSlot for specified key.

If not slot exists a new one is created for key.

@param  string $key
@return RegisterSlot
Returns RegisterSlot for specified key .