| 1 | <?php |
||
| 24 | class SessionPhpBinarySerializer implements ISessionSerializer |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Implement nette smart magic |
||
| 28 | */ |
||
| 29 | use Nette\SmartObject; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function serialize(array $data) : string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | * |
||
| 42 | * @link http://ca2.php.net/manual/en/function.session-decode.php#108037 Code from this comment on php.net |
||
| 43 | */ |
||
| 44 | public function unserialize(string $raw) : array |
||
| 62 | } |
||
| 63 |