| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- declare(strict_types=1);
- namespace TestPlugin\Http\Session;
- use SessionHandlerInterface;
- /**
- * Test suite plugin session handler
- */
- class TestPluginSession implements SessionHandlerInterface
- {
- /**
- * @inheritDoc
- */
- public function open($path, $name): bool
- {
- return true;
- }
- /**
- * @inheritDoc
- */
- public function close(): bool
- {
- return true;
- }
- /**
- * @inheritDoc
- */
- #[\ReturnTypeWillChange]
- public function read($id)
- {
- }
- /**
- * @inheritDoc
- */
- public function write($id, $data): bool
- {
- return true;
- }
- /**
- * @inheritDoc
- */
- public function destroy($id): bool
- {
- return true;
- }
- /**
- * @inheritDoc
- */
- #[\ReturnTypeWillChange]
- public function gc($maxlifetime)
- {
- return 0;
- }
- }
|