/** * Fonction statique qui crée le singleton * @return l'unique objet de la classe ToolsPdo */ public static function getToolsPdo() { if (empty(ToolsPdo::$instance)) { ToolsPdo::$instance = new ToolsPdo(); } return ToolsPdo::$instance; }