<?php

class DatabaseConn {

    private $user;
    private $password;
    private $host;
    private $database;
    private $conn;

    public function __construct() {
        $this->user = "tebefvsu_blockchain";
        $this->password = "82jKk7tsk3nfFjH";
        $this->host = "localhost";
        $this->database = "tebefvsu_blockchain";
    }

    public function connect() {
        $this->conn = mysqli_connect($this->host, $this->user, $this->password, $this->database) or die("Failure to connect to Database");
        $connStatus = $this->conn;
        return $connStatus;
    }

}
