| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function getLearningProgramFromAgreement(Agreement $agreement) |
||
| 29 | { |
||
| 30 | $learningOutcomes = $this->getFromAgreement($agreement); |
||
| 31 | $result = []; |
||
| 32 | |||
| 33 | foreach ($learningOutcomes as $learningOutcome) { |
||
| 34 | $item = []; |
||
| 35 | $item['learning_outcome'] = $learningOutcome; |
||
| 36 | $item['activities'] = $this->getEntityManager()->getRepository('AppBundle:Activity')->getFromAgreementAndLearningOutcome($agreement, $learningOutcome); |
||
| 37 | $result[] = $item; |
||
| 38 | } |
||
| 39 | |||
| 40 | return $result; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |