| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function saveSharedStatement(Statement $statement): SharedStatement |
||
| 17 | { |
||
| 18 | $statementSerialized = $this->serializeStatement($statement); |
||
| 19 | |||
| 20 | $sharedStmt = new SharedStatement( |
||
| 21 | json_decode($statementSerialized, true) |
||
| 22 | ); |
||
| 23 | |||
| 24 | $em = Database::getManager(); |
||
| 25 | $em->persist($sharedStmt); |
||
| 26 | $em->flush(); |
||
| 27 | |||
| 28 | return $sharedStmt; |
||
| 29 | } |
||
| 38 | } |