for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\User\CurrentUser\Storage;
/**
* Stores current identity ID in memory.
*/
final class MemoryCurrentIdentityStorage implements CurrentIdentityStorageInterface
{
private ?string $id = null;
public function get(): ?string
return $this->id;
}
public function set(string $id): void
$this->id = $id;
public function clear(): void
$this->id = null;