public function API_Facture_Recupere_parId($id_facture) { $commande = $this->bdd->Commande_Recupere_parIdFacture($id_facture); if(!$this->peutVoirCommande($commande->id_commande)) { throw new ErrorException("Vous n\êtes pas autorisé."); } return $this->bdd->Facture_Recupere_parId($id_facture); }