From ff14091476a35de16a9ea3208501040cfae93a06 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 14 Dec 2022 12:55:46 +0100 Subject: MODEL + reorganisation --- src/model/Clients.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/model/Clients.php (limited to 'src/model/Clients.php') diff --git a/src/model/Clients.php b/src/model/Clients.php new file mode 100644 index 0000000..1256458 --- /dev/null +++ b/src/model/Clients.php @@ -0,0 +1,50 @@ +table = strtolower(__CLASS__); // simple parce que la classe a le nom de la table + } + + //~ public function set(string $variable, $value) + //~ { + //~ $this->$variable = $value; + //~ return($this); + //~ } + + // setters + public function setID(int $value) // inutile? il s'autoincrémente + { + $this->ID = $value; + return($this); + } + public function setPrenom_nom(string $value) + { + $this->prenom_nom = $value; + return($this); + } + public function setAdresse(string $value) + { + $this->adresse = $value; + return($this); + } + public function setCode_client(string $value) + { + $this->code_client = $value; + return($this); + } + public function setCommentaires(string $value) + { + $this->commentaires = $value; + return($this); + } +} -- cgit v1.2.3