| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function getApplicantInstance(object $experience) |
||
| 38 | { |
||
| 39 | $applicant = null; |
||
| 40 | switch ($experience->experienceable_type) { |
||
| 41 | case 'applicant': |
||
| 42 | $applicant = $experience->experienceable; |
||
| 43 | break; |
||
| 44 | case 'application': |
||
| 45 | $applicant = $experience->experienceable->applicant; |
||
| 46 | break; |
||
| 47 | } |
||
| 48 | return $applicant; |
||
| 49 | } |
||
| 51 |