/**
* @author Choochter
- *
+ *
* To change this generated comment edit the template variable "typecomment":
- * Window>Preferences>Java>ObfuscatorIgnores.
- * To enable and disable the creation of type comments go to
- * Window>Preferences>Java>Code Generation.
+ * Window>Preferences>Java>ObfuscatorIgnores. To enable and disable the creation
+ * of type comments go to Window>Preferences>Java>Code Generation.
*/
public class PHPFunction extends PHPElement {
- private String FunctionUsage;
-
- public void setDescription(String Usage) {
- this.FunctionUsage = Usage;
- }
- public String getDescription() {
- return this.FunctionUsage;
- }
+ private String fDescription;
- public String getHoverText() {
- return super.getHoverText()+"\n\n"+getDescription();
- }
-
- public PHPFunction(String Name, String Description, String Usage) {
- super(Name, Description);
- setDescription(Usage);
- }
+ public void setDescription(String description) {
+ this.fDescription = description;
+ }
+
+ public String getDescription() {
+ return this.fDescription;
+ }
+
+ public String getHoverText() {
+ return super.getHoverText() + "<br>" + getDescription();
+ }
+
+ public PHPFunction(String Name, String usage, String description) {
+ super(Name, usage);
+ setDescription(description);
+ }
}