SessionLimitCollisionEvent.php in Session Limit 2.x
File
src/Event/SessionLimitCollisionEvent.php
View source
<?php
namespace Drupal\session_limit\Event;
use Symfony\Component\EventDispatcher\Event;
use Drupal\Core\Session\AccountInterface;
class SessionLimitCollisionEvent extends Event {
protected $sessionId;
protected $account;
protected $userMaxSessions;
protected $userActiveSessions;
public function __construct($sessionId, $account, $userActiveSessions, $userMaxSessions) {
$this->sessionId = $sessionId;
$this->account = $account;
$this->userActiveSessions = $userActiveSessions;
$this->userMaxSessions = $userMaxSessions;
}
public function getSessionId() {
return $this->sessionId;
}
public function getUserMaxSessions() {
return $this->userMaxSessions;
}
public function getUserActiveSessions() {
return $this->userActiveSessions;
}
public function getAccount() {
return $this->account;
}
}