added Spanish language in the page (why wasn't it ?)
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPFunction.java
1 package net.sourceforge.phpeclipse.phpeditor.php;
2
3 /**
4  * @author Choochter
5  *
6  * To change this generated comment edit the template variable "typecomment":
7  * Window>Preferences>Java>Templates.
8  * To enable and disable the creation of type comments go to
9  * Window>Preferences>Java>Code Generation.
10  */
11 public class PHPFunction extends PHPElement {
12   private String FunctionUsage;
13   
14   public void setDescription(String Usage) {
15     this.FunctionUsage = Usage;
16   }
17   public String getDescription() {
18     return this.FunctionUsage;
19   }
20
21   public String getHoverText() {
22     return super.getHoverText()+"\n\n"+getDescription();
23   }
24   
25   public PHPFunction(String Name, String Description, String Usage) {
26     super(Name, Description);
27     setDescription(Usage);
28   }
29 }