id; return self::$userData = $user; } public static function checkState($state) { return (isset($_SESSION['state']) && ($_SESSION['state'] === $state)); } } ?>