‪TYPO3CMS  10.4
SwitchUserEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
23 final class ‪SwitchUserEvent
24 {
28  private ‪$sessionId;
29 
33  private ‪$targetUser;
34 
38  private ‪$currentUser;
39 
40  public function ‪__construct(string ‪$sessionId, array ‪$targetUser, array ‪$currentUser)
41  {
42  $this->sessionId = ‪$sessionId;
43  $this->targetUser = ‪$targetUser;
44  $this->currentUser = ‪$currentUser;
45  }
46 
47  public function ‪getSessionId(): string
48  {
50  }
51 
52  public function ‪getTargetUser(): array
53  {
55  }
56 
57  public function ‪getCurrentUser(): array
58  {
59  return ‪$this->currentUser;
60  }
61 }
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\$currentUser
‪array $currentUser
Definition: SwitchUserEvent.php:35
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\getTargetUser
‪getTargetUser()
Definition: SwitchUserEvent.php:49
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\getSessionId
‪getSessionId()
Definition: SwitchUserEvent.php:44
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\$targetUser
‪array $targetUser
Definition: SwitchUserEvent.php:31
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\getCurrentUser
‪getCurrentUser()
Definition: SwitchUserEvent.php:54
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\$sessionId
‪string $sessionId
Definition: SwitchUserEvent.php:27
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent\__construct
‪__construct(string $sessionId, array $targetUser, array $currentUser)
Definition: SwitchUserEvent.php:37
‪TYPO3\CMS\Backend\Authentication\Event\SwitchUserEvent
Definition: SwitchUserEvent.php:24
‪TYPO3\CMS\Backend\Authentication\Event
Definition: SwitchUserEvent.php:18