all files / synchronizator/src/action/ Data.js

100% Statements 8/8
100% Branches 0/0
100% Functions 3/3
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49                      15×             15×             15×               15×                 15×      
/**
 * Action data - value object
 *
 * @author Jan Busfy <jan.busfy@unitedclassifieds.sk>
 */
module.exports = function(type, path)
{
    /**
     * Private context
     *
     * @var Object
     */
    let _this = {};
    
    /**
     * Action type
     *
     * @var String
     */
    _this.type = String(type);
    
    /**
     * Action path
     *
     * @var String
     */
    _this.path = String(path);
    
    
    /**
     * Retrieves action type
     *
     * @return String
     */
    this.getType = function()
    {
        return _this.type;
    };
    
    /**
     * Retrieves action path
     *
     * @return String
     */
    this.getPath = function()
    {
        return _this.path;
    };
};