Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
55 | 2 | public function persist(mixed $userId, mixed $contextId, ?string $checksum, ?DateTimeInterface $timestamp): void |
|
56 | { |
||
57 | 2 | $this->assertSessionStarted(); |
|
58 | |||
59 | 1 | $_SESSION[$this->key] = [ |
|
60 | 1 | 'user' => $userId, |
|
61 | 1 | 'context' => $contextId, |
|
62 | 1 | 'checksum' => $checksum, |
|
63 | 1 | 'timestamp' => $timestamp?->getTimestamp(), |
|
64 | 1 | ]; |
|
77 |