blob: 1fb3d2811146389c9c3a0a7d04013054dfaade5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
include_once("DB.php");
class JobOffer {
public const TABLE_NAME = "job_offers";
public const TABLE_COLUMNS = array("title " . DB::STRING_TYPE, "description " . DB::STRING_TYPE, "company " . DB::STRING_TYPE, "salary " . DB::FLOAT_TYPE);
public string $title;
public string $description;
public string $company;
public float $salary;
private DB $db;
function __construct(DB $db) {
$this->db = $db;
}
}
|