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