예제 #1
0
        public List <string> getAttribut(Attribut att)
        {
            List <string> line = new List <string>();

            line.Add(" ");
            line.Add("    private $" + att.getName() + ";");

            return(line);
        }
예제 #2
0
        public List <string> setGetter(Attribut att)
        {
            List <string> line = new List <string>();
            string        name = FirstCharToUpper(att.getName());

            line.Add(" ");
            line.Add("    /**");
            line.Add("    *@return " + att.getType());
            line.Add("    */");
            line.Add("    ");
            line.Add("     public function get" + name + "()");
            line.Add("     {");
            line.Add("          return $this->" + att.getName() + ";");
            line.Add("     }");

            return(line);
        }
예제 #3
0
 /**
  * Add attribut to the class
  * param
  * Attribut @att
  *
  * return void
  */
 public void addAttribut(Attribut att)
 {
     this.attributs.Add(att);
 }