Merge pull request 'MedhiJava' (#3) from MedhiJava into main
Reviewed-on: #3
This commit is contained in:
		@@ -9,5 +9,89 @@ package Metier;
 | 
			
		||||
 * @author emile.lalorcey
 | 
			
		||||
 */
 | 
			
		||||
public class Medicament {
 | 
			
		||||
    /**
 | 
			
		||||
     * id = le numero du m<>dicament
 | 
			
		||||
     * nom = le nom du m<>dicament
 | 
			
		||||
     * composition = la composition du m<>dicament
 | 
			
		||||
     * effet = les effet du m<>dicament
 | 
			
		||||
     * contreindication = les contreindications du m<>dicament
 | 
			
		||||
     * prix = le prix en unit<69> du m<>dicament
 | 
			
		||||
     */
 | 
			
		||||
    private int id;
 | 
			
		||||
    private String nom;
 | 
			
		||||
    private String composition;
 | 
			
		||||
    private String effet;
 | 
			
		||||
    private String contreindication;
 | 
			
		||||
    private float prix;
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /** LE CONSTRUCTEUR DEFAULT
 | 
			
		||||
     * 
 | 
			
		||||
     * @param id
 | 
			
		||||
     * @param nom
 | 
			
		||||
     * @param composition
 | 
			
		||||
     * @param effet
 | 
			
		||||
     * @param contreindication
 | 
			
		||||
     * @param prix 
 | 
			
		||||
     */
 | 
			
		||||
    public Medicament(int id, String nom, String composition, String effet, String contreindication, float prix) {
 | 
			
		||||
        this.id = id;
 | 
			
		||||
        this.nom = nom;
 | 
			
		||||
        this.composition = composition;
 | 
			
		||||
        this.effet = effet;
 | 
			
		||||
        this.contreindication = contreindication;
 | 
			
		||||
        this.prix = prix;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    /** LES GUETTEUR
 | 
			
		||||
     * @return the id
 | 
			
		||||
     */
 | 
			
		||||
    public int getId() {
 | 
			
		||||
        return id;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return the nom
 | 
			
		||||
     */
 | 
			
		||||
    public String getNom() {
 | 
			
		||||
        return nom;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return the composition
 | 
			
		||||
     */
 | 
			
		||||
    public String getComposition() {
 | 
			
		||||
        return composition;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return the effet
 | 
			
		||||
     */
 | 
			
		||||
    public String getEffet() {
 | 
			
		||||
        return effet;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return the contreindication
 | 
			
		||||
     */
 | 
			
		||||
    public String getContreindication() {
 | 
			
		||||
        return contreindication;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return the prix
 | 
			
		||||
     */
 | 
			
		||||
    public float getPrix() {
 | 
			
		||||
        return prix;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    @Override
 | 
			
		||||
    public String toString() {
 | 
			
		||||
        return "Medicament{" + "id=" + id + ", nom=" + nom + ", composition=" + composition + ", effet=" + effet + ", contreindication=" + contreindication + ", prix=" + prix + '}';
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user