getInnerClient()

in lib/generator.js [165:174]


  getInnerClient(aliasId, phpPath) {
    const moduleAst = this.ast.innerDep.get(aliasId);
    const beginNotes = DSL.note.getNotes(moduleAst.notes, 0, moduleAst.moduleBody.nodes[0].tokenRange[0]);
    const clientNote = beginNotes.find(note => note.note.lexeme === '@clientName');
    if(clientNote) {
      return _string(clientNote.arg.value);
    }
    const fileInfo = path.parse(phpPath);
    return `${_upperFirst(fileInfo.name)}Client`;
  }