1 | <?php namespace JobApis\JobsToMail\Notifications\Messages; |
||
6 | class JobMailMessage extends MailMessage |
||
7 | { |
||
8 | public $jobListings = []; |
||
9 | public $advertisement = null; |
||
10 | |||
11 | /** |
||
12 | * Add a Job listing to the notification |
||
13 | * |
||
14 | * @param Job $job |
||
15 | * |
||
16 | * @return $this |
||
17 | */ |
||
18 | 2 | public function listing(Job $job) |
|
29 | |||
30 | /** |
||
31 | * Sets the advertisement to be shown in this message. |
||
32 | * |
||
33 | * @param null $name |
||
34 | * |
||
35 | * @return $this |
||
36 | */ |
||
37 | 1 | public function advertisement($name = null) |
|
42 | |||
43 | /** |
||
44 | * Get the data array for the mail message. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 1 | public function data() |
|
59 | |||
60 | 2 | private function getTitle($title) |
|
64 | |||
65 | 2 | private function getLocation($location) |
|
69 | |||
70 | 2 | private function getCompany($company, $industry = null) |
|
81 | |||
82 | 2 | private function getDate($dateTime) |
|
89 | } |
||
90 |