| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public static function fromData(array $data) |
||
| 41 | { |
||
| 42 | $raCandidateInstitutions = new self(); |
||
| 43 | |||
| 44 | foreach ($data as $candidate) { |
||
| 45 | $raCandidateInstitutions->raCandidate = RaCandidate::fromData($candidate); |
||
| 46 | break; |
||
| 47 | } |
||
| 48 | |||
| 49 | $raCandidateInstitutions->institutions = RaCandidateInstitutionCollection::fromData($data); |
||
| 50 | |||
| 51 | return $raCandidateInstitutions; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |