| 1 | <?php declare(strict_types=1); |
||
| 5 | final class Session |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $contents = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Session constructor. |
||
| 14 | * @param array $contents |
||
| 15 | */ |
||
| 16 | 1 | public function __construct(array $contents) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param array $contents |
||
| 23 | */ |
||
| 24 | 1 | public function setContents(array $contents) |
|
| 25 | { |
||
| 26 | 1 | $this->contents = $contents; |
|
| 27 | 1 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | 1 | public function getContents(): array |
|
| 36 | } |
||
| 37 |