$value){ $strMethodName = "set".ucfirst(str_replace($this->_prefix,'',$key)); if (method_exists($this,$strMethodName)){ $this->$strMethodName($value); } } } protected function nettoyer(string $strText){ $strText = trim($strText); $strText = str_replace("", "", $strText); return $strText; } }