public function __construct(User $user, $isNewSession = false) { $this->user = $user; $this->isNewSession = $isNewSession; }