username = $username; } /** * Get the username that was locked out. * * @return string */ public function get_username() { return $this->username; } public function to_legacy() { $legacy = parent::to_legacy(); $legacy['username'] = $this->get_username(); $legacy['user_lock'] = true; return $legacy; } }