예제 #1
0
 /**
  * @param LigneInterface $ligne
  * @return VentilationLigne
  */
 static function create(LigneInterface $ligne)
 {
     $ventilationLigne = new VentilationLigne();
     $ventilationLigne->setMontant($ligne->getMontant());
     $factory = new SectionFactory();
     $ventilationLigne->setSection($factory->create($ligne));
     return $ventilationLigne;
 }
예제 #2
0
 /**
  * @param VentilationLigne $ligne
  */
 public function addLigne(VentilationLigne $ligne)
 {
     $this->ventilationLigneLst[] = $ligne;
     $this->montant += $ligne->getMontant();
 }