refactored
This commit is contained in:
parent
c2248c764a
commit
e4ea23f71f
|
|
@ -8,13 +8,5 @@ class Applicant {
|
|||
public $cv;
|
||||
public $jobId;
|
||||
private $jobsTable;
|
||||
|
||||
public function __construct(\jobs\JobDatabaseTable $jobsTable) {
|
||||
$this->jobsTable = $jobsTable;
|
||||
}
|
||||
|
||||
public function getJob() {
|
||||
return $this->jobsTable->find(['id'], ['value0' => $this->jobId])[0];
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue