public List <string> getAttribut(Attribut att) { List <string> line = new List <string>(); line.Add(" "); line.Add(" private $" + att.getName() + ";"); return(line); }
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); }
/** * Add attribut to the class * param * Attribut @att * * return void */ public void addAttribut(Attribut att) { this.attributs.Add(att); }