* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Polymorphine\Session\Tests\Doubles; use Polymorphine\Session\SessionStorageProvider; use Polymorphine\Session\SessionStorage; class FakeSessionStorageProvider implements SessionStorageProvider { public MockedSessionStorage $storage; public function __construct() { $this->storage = new MockedSessionStorage(); } public function storage(): SessionStorage { $this->storage->invoked = true; return $this->storage; } }