<?php
require_once __DIR__ . '/../functions.php';

class Setting {
    private $conn;

    public function __construct($conn) {
        $this->conn = $conn;
    }

    public function getAll() {
        $stmt = $this->conn->query("SELECT * FROM settings");
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
    }
    public function get($id) {
        $stmt = $this->conn->query("SELECT * FROM settings where id=$id");
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
    }

  
}
?>