All files / gameFiles/frontend AACSymbol.js

0% Statements 0/19
100% Branches 1/1
100% Functions 1/1
0% Lines 0/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
 
/**
 * This class represents a symbol on the guessing board
 */
class AACSymbol{
    /**
     * Creates an instance of an AACSymbol to represent a symbol on the guessing board
     * 
     * @param {string} imageUrl The URL to the image of the symbol
     * @param {string} symbolId The ID of the symbol to be fetched
     * @param {string} label The label assigned to the symbol
     * @param {string} category The category the symbol falls in
     */
    constructor(imageUrl, symbolId, label, category){
        this.imageUrl = imageUrl;
        this.symbolId = symbolId;
        this.label = label;
        this.category = category;
    }
}