Home Identifier Source Test

src/lib/resolvedBinding.js

/**
* @class ResolvedBinding
*/
export class ResolvedBinding{

  /**
  * This is a ResolvedBinding
  * @constructor
  * @param {String} key - The key to search the resolvedBinding
  * @param {Object} factory - This if the factory to call to get the wanted value
  * @param {Object} dependencies - The dependencies of the ResolvedBinding
  */
  constructor(key, factory, dependencies){
    this.key = key;
    this.factory = factory;
    this.dependencies = dependencies ? dependencies : [];
  }
}