From 3298938d8f3bc7d6dafd8e67311e4ff0afc8d288 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 31 Mar 2021 22:01:00 +0300 Subject: Implemented DBModel for storing an instance of DB --- src/index.php | 4 ++-- src/models/DBModel.php | 12 ++++++++++++ src/models/JobOffer.php | 13 +++++++------ 3 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 src/models/DBModel.php (limited to 'src') diff --git a/src/index.php b/src/index.php index 86562ab..285f6e7 100644 --- a/src/index.php +++ b/src/index.php @@ -1,6 +1,6 @@

Hello World!

diff --git a/src/models/DBModel.php b/src/models/DBModel.php new file mode 100644 index 0000000..65bb725 --- /dev/null +++ b/src/models/DBModel.php @@ -0,0 +1,12 @@ +db = $db; + function __construct(string $title, string $description, string $company, float $salary) { + $this->title = $title; + $this->description = $description; + $this->company = $company; + $this->salary = $salary; } } -- cgit v1.3.1-23-gd82d