Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
32 | 1 | public function __construct( |
|
33 | string $affiliateId, |
||
34 | string $country, |
||
35 | string $language = null, |
||
36 | \Careerjet_API $api = null |
||
37 | ) { |
||
38 | 1 | $this->affiliateId = $affiliateId; |
|
39 | 1 | $this->country = $country; |
|
40 | 1 | $this->language = $language; |
|
41 | |||
42 | 1 | $this->api = !empty($api) ? $api : new \Careerjet_API(Locale::byCountryAndLanguage($country, $language)); |
|
43 | 1 | } |
|
44 | |||
74 |