champ = $champ; $this->longueur = $longueur; } function accélère ($faisceau) { $sortie = new Faisceau ($faisceau->nom, $faisceau->twiss, $faisceau->énergie); $sortie->énergie += $this->champ * $this->longueur; return ($sortie); } }; ?>