 
     return data.classes
 
+  ###*
+   * Autocomplete for internal PHP functions
+   * @return {array}
+  ###
   functions: () ->
     if not data.functions?
       res = execute("--functions", false)

exec = require "child_process"
config = require "../config.coffee"

data =
  statics: [],
  methods: []

execute = (command, async) ->
  return [] if data.error?



    return data.statics[className]

  ###*
   * Autocomplete for methods & properties of a class
   * @param  {string} className Class complete name (with namespace)
   * @return {array}
  ###
  methods: (className) ->
    if not data.methods[className]?
      res = execute("--methods '" + className + "'")
