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/models/JobOffer.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/models/JobOffer.php') diff --git a/src/models/JobOffer.php b/src/models/JobOffer.php index 1fb3d28..d4268db 100644 --- a/src/models/JobOffer.php +++ b/src/models/JobOffer.php @@ -1,7 +1,7 @@ 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