Total Complexity | 6 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class MockSession extends \ArrayObject implements SessionInterface |
||
14 | { |
||
15 | use FlashTrait; |
||
16 | |||
17 | protected array $initialData; |
||
18 | protected int $status = \PHP_SESSION_ACTIVE; |
||
19 | |||
20 | /** |
||
21 | * MockSession constructor. |
||
22 | */ |
||
23 | public function __construct(array $input = [], ?FlashBag $flashes = null) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function status(): int |
||
35 | { |
||
36 | return $this->status; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function start(): void |
||
43 | { |
||
44 | $this->status = \PHP_SESSION_ACTIVE; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function stop(): void |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @inheritDoc |
||
58 | */ |
||
59 | public function abort(): void |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @inheritDoc |
||
67 | */ |
||
68 | public function clear(): void |
||
73 |