| 1 | <?php  | 
            ||
| 21 | trait ContainerSessionTrait  | 
            ||
| 22 | { | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @param string $key  | 
            ||
| 26 | * @param string|null $subKey  | 
            ||
| 27 | *  | 
            ||
| 28 | * @return mixed  | 
            ||
| 29 | */  | 
            ||
| 30 | public function getSession(string $key, string $subKey = null)  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @param string $key  | 
            ||
| 37 | * @param $value  | 
            ||
| 38 | * @param string|null $subKey  | 
            ||
| 39 | */  | 
            ||
| 40 | public function setSession(string $key, $value, string $subKey = null): void  | 
            ||
| 52 | |||
| 53 | /**  | 
            ||
| 54 | * @param string $key  | 
            ||
| 55 | * @param string $subKey  | 
            ||
| 56 | *  | 
            ||
| 57 | * @return bool  | 
            ||
| 58 | */  | 
            ||
| 59 | public function hasSession(string $key, string $subKey = null): bool  | 
            ||
| 63 | |||
| 64 | /**  | 
            ||
| 65 | * @param string $key  | 
            ||
| 66 | * @param string|null $subKey  | 
            ||
| 67 | */  | 
            ||
| 68 | public function unsetSession(string $key, string $subKey = null): void  | 
            ||
| 76 | |||
| 77 | /**  | 
            ||
| 78 | * @codeCoverageIgnore  | 
            ||
| 79 | */  | 
            ||
| 80 | public function startSession(): void  | 
            ||
| 84 | |||
| 85 | /**  | 
            ||
| 86 | * @codeCoverageIgnore  | 
            ||
| 87 | */  | 
            ||
| 88 | public function stopSession(): void  | 
            ||
| 92 | |||
| 93 | public function clearSession(): void  | 
            ||
| 97 | }  | 
            ||
| 98 |