for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\User\Event;
use Yiisoft\Auth\IdentityInterface;
final class AfterLogin
{
public function __construct(private IdentityInterface $identity)
}
public function getIdentity(): IdentityInterface
return $this->identity;