From d8fa24e186e74d29e33cc138c1c163e8f99a4de9 Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Mon, 23 Jan 2023 14:37:07 +0000 Subject: [PATCH] Added entities --- jobs/Entity/Applicant.php | 20 ++++++++++++++++++++ jobs/Entity/Category.php | 7 +++++++ jobs/Entity/Job.php | 19 +++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 jobs/Entity/Applicant.php create mode 100644 jobs/Entity/Category.php create mode 100644 jobs/Entity/Job.php diff --git a/jobs/Entity/Applicant.php b/jobs/Entity/Applicant.php new file mode 100644 index 0000000..3eabab5 --- /dev/null +++ b/jobs/Entity/Applicant.php @@ -0,0 +1,20 @@ +jobsTable = $jobsTable; + } + + public function getJob() { + return $this->jobsTable->find('id', $this->jobId)[0]; + } +} +?> \ No newline at end of file diff --git a/jobs/Entity/Category.php b/jobs/Entity/Category.php new file mode 100644 index 0000000..ca84e3f --- /dev/null +++ b/jobs/Entity/Category.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/jobs/Entity/Job.php b/jobs/Entity/Job.php new file mode 100644 index 0000000..06b0cc5 --- /dev/null +++ b/jobs/Entity/Job.php @@ -0,0 +1,19 @@ +catsTable = $catsTable; + } + + public function getCat() { + return $this->catsTable->find('id', $this->categoryId); + } +} \ No newline at end of file