| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | protected function saveSharedStatement(Statement $statement): XApiSharedStatement |
||
| 38 | { |
||
| 39 | $statementSerialized = $this->serializeStatement($statement); |
||
| 40 | |||
| 41 | $sharedStmt = new XApiSharedStatement( |
||
| 42 | json_decode($statementSerialized, true) |
||
| 43 | ); |
||
| 44 | |||
| 45 | $em = Database::getManager(); |
||
| 46 | $em->persist($sharedStmt); |
||
| 47 | $em->flush(); |
||
| 48 | |||
| 49 | return $sharedStmt; |
||
| 50 | } |
||
| 65 |