<?php

class Database
{
    private static $bdd = null;

    private function __construct() {
    }

    public static function getBdd() {
        if(is_null(self::$bdd)) {
          //todo_php
            self::$bdd = new PDO("mysql:host=localhost;dbname=z_blogcms", 'root', '');
        }
        return self::$bdd;
    }
}
?>