class SessionLimitCollisionEvent in Session Limit 8
Same name and namespace in other branches
- 2.x src/Event/SessionLimitCollisionEvent.php \Drupal\session_limit\Event\SessionLimitCollisionEvent
Hierarchy
- class \Drupal\session_limit\Event\SessionLimitCollisionEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of SessionLimitCollisionEvent
1 file declares its use of SessionLimitCollisionEvent
- SessionLimit.php in src/
Services/ SessionLimit.php
File
- src/
Event/ SessionLimitCollisionEvent.php, line 8
Namespace
Drupal\session_limit\EventView source
class SessionLimitCollisionEvent extends Event {
/**
* @var int
*/
protected $sessionId;
/**
* @var AccountInterface
*/
protected $account;
/**
* @var int
*/
protected $userMaxSessions;
/**
* @var int
*/
protected $userActiveSessions;
/**
* SessionLimitCollisionEvent constructor.
*
* @param int $sessionId
* @param AccountInterface $account
* @param int $userActiveSessions
* @param int $userMaxSessions
*/
public function __construct($sessionId, $account, $userActiveSessions, $userMaxSessions) {
$this->sessionId = $sessionId;
$this->account = $account;
$this->userActiveSessions = $userActiveSessions;
$this->userMaxSessions = $userMaxSessions;
}
/**
* @return int
*/
public function getSessionId() {
return $this->sessionId;
}
/**
* @return int
*/
public function getUserMaxSessions() {
return $this->userMaxSessions;
}
/**
* @return int
*/
public function getUserActiveSessions() {
return $this->userActiveSessions;
}
/**
* @return AccountInterface
*/
public function getAccount() {
return $this->account;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SessionLimitCollisionEvent:: |
protected | property | ||
SessionLimitCollisionEvent:: |
protected | property | ||
SessionLimitCollisionEvent:: |
protected | property | ||
SessionLimitCollisionEvent:: |
protected | property | ||
SessionLimitCollisionEvent:: |
public | function | ||
SessionLimitCollisionEvent:: |
public | function | ||
SessionLimitCollisionEvent:: |
public | function | ||
SessionLimitCollisionEvent:: |
public | function | ||
SessionLimitCollisionEvent:: |
public | function | SessionLimitCollisionEvent constructor. |