1 | <?php namespace JobApis\Jobs\Client\Providers; |
||
5 | class ZiprecruiterProvider extends AbstractProvider |
||
6 | { |
||
7 | /** |
||
8 | * Map of setter methods to query parameters |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $queryMap = [ |
||
13 | 'setApiKey' => 'api_key', |
||
14 | 'setSearch' => 'search', |
||
15 | 'setLocation' => 'location', |
||
16 | 'setRadiusMiles' => 'radius_miles', |
||
17 | 'setPage' => 'page', |
||
18 | 'setJobsPerPage' => 'jobs_per_page', |
||
19 | 'setDaysAgo' => 'days_ago', |
||
20 | 'setKeyword' => 'search', |
||
21 | 'setCount' => 'jobs_per_page', |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * Current api query parameters |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $queryParams = [ |
||
30 | 'api_key' => null, |
||
31 | 'search' => null, |
||
32 | 'location' => null, |
||
33 | 'radius_miles' => null, |
||
34 | 'page' => null, |
||
35 | 'jobs_per_page' => null, |
||
36 | 'days_ago' => null, |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * Returns the standardized job object |
||
41 | * |
||
42 | * @param array $payload |
||
43 | * |
||
44 | * @return \JobApis\Jobs\Client\Job |
||
45 | */ |
||
46 | 4 | public function createJobObject($payload) |
|
69 | |||
70 | /** |
||
71 | * Job response object default keys that should be set |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | 4 | public function getDefaultResponseFields() |
|
93 | |||
94 | /** |
||
95 | * Get listings path |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | 4 | public function getListingsPath() |
|
103 | } |
||
104 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.