public function add(Client $client) { $q = $this->_db->prepare('INSERT INTO client SET numero = :numero, nom = :nom, prenom = :prenom, adresse= :adresse, referent = :referent'); $q->bindValue(':numero', $client->numero(), PDO::PARAM_INT); $q->bindValue(':nom', $client->nom(), PDO::PARAM_STR); $q->bindValue(':prenom', $client->prenom(), PDO::PARAM_STR); $q->bindValue(':adresse', $client->adresse(), PDO::PARAM_STR); $q->bindValue(':referent', $client->referent(), PDO::PARAM_STR); $q->execute(); return self::ACTION_REUSSIE; }