$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); } public function newRow(array $entry) { $this->hydrate(['prenom_nom' => $entry[0], 'adresse' => $entry[1], 'code_client' => $entry[2], 'commentaires' => $entry[3]]); $this->create(); $this->setIdFromLastInsertID(); } }