File "class-user-context.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/core/lib/lockout/class-user-context.php
File size: 638 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace iThemesSecurity\Lib\Lockout;
final class User_Context extends Context {
/** @var int */
private $user_id;
/**
* ITSEC_User_Lockout_Context constructor.
*
* @param string $lockout_module
* @param int $user_id
*/
public function __construct( $lockout_module, $user_id ) {
parent::__construct( $lockout_module );
$this->user_id = $user_id;
}
/**
* Get the user ID that was locked out.
*
* @return int
*/
public function get_user_id() {
return $this->user_id;
}
public function make_execute_lock_context() {
return new Execute_Lock\User_Context( $this, $this->get_user_id() );
}
}