Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function record(Enrollment $fromEnrollment, Enrollment $toEnrollment) |
||
15 | { |
||
16 | $logExchange = ExchangeRegistryEntry::make(); |
||
17 | $logExchange->fromShiftRelation()->associate($fromEnrollment->shift); |
||
18 | $logExchange->toShiftRelation()->associate($toEnrollment->shift); |
||
19 | $logExchange->fromStudentRelation()->associate($fromEnrollment->student); |
||
20 | $logExchange->toStudentRelation()->associate($toEnrollment->student); |
||
21 | $logExchange->save(); |
||
22 | } |
||
32 |