Conditions | 2 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
18 | public static function startSession($name): bool |
||
19 | { |
||
20 | $self = new static($name); |
||
21 | try { |
||
22 | $self->start(); |
||
23 | register_shutdown_function([$self, 'shutdown']); |
||
24 | |||
25 | return true; |
||
26 | } catch (\Exception $exception) { |
||
27 | $self->addException($exception); |
||
28 | $self->save(); |
||
29 | |||
30 | return false; |
||
31 | } |
||
34 |