| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 32 | 15 | public function __construct(string $id, array $contents, SessionIdInterface $sessionId) |
|
| 33 | { |
||
| 34 | 15 | $this->id = $id; |
|
| 35 | 15 | $this->contents = $contents; |
|
| 36 | 15 | $this->sessionId = $sessionId; |
|
| 37 | |||
| 38 | 15 | if ($this->id !== '') { |
|
| 39 | 4 | $this->status = \PHP_SESSION_ACTIVE; |
|
| 40 | } |
||
| 41 | 15 | } |
|
| 42 | |||
| 110 |