diff --git a/class/consommable.php b/class/consommable.php new file mode 100644 index 0000000000000000000000000000000000000000..e4b7b595dbfc6fd5d7ba858b704524d3f4764c49 --- /dev/null +++ b/class/consommable.php @@ -0,0 +1,49 @@ +<?php + +class Consommable +{ + private $ref; + private $nom; + private $prix; + private $type; + + public function ref() + { + return $this->ref; + } + + public function setRef($ref) + { + $this->ref = $ref; + } + + public function nom() + { + return $this->nom; + } + + public function setNom($nom) + { + $this->nom = $nom; + } + + public function prix() + { + return $this->prix; + } + + public function setPrix($prix) + { + $this->prix = $prix; + } + + public function type() + { + return $this->type; + } + + public function setType($type) + { + $this->type = $type; + } +}