Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function act(InformationCollected $event): void |
||
30 | { |
||
31 | $struct = $event->getInformationCollectionStruct(); |
||
32 | |||
33 | try { |
||
34 | $this->informationCollection |
||
35 | ->createCollection($struct); |
||
36 | } catch (PersistingFailedException $e) { |
||
37 | throw new ActionFailedException('database', $e->getMessage()); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |