codecamp

PHP8 The SensitiveParameterValue class

(PHP 8 >= 8.2.0)

简介

SensitiveParameterValue 类允许包装敏感值以防止它们意外暴露。

具有 SensitiveParameter 属性的参数值将自动包装在堆栈跟踪内的 SensitiveParameterValue 对象内。

类摘要

final class SensitiveParameterValue {
/* 属性 */
private readonly mixed $value;
/* 方法 */
public __construct(mixed $value)
public __debugInfo(): array
public getValue(): mixed
}

属性

value

The sensitive value to be protected against accidental exposure.

目录

  • SensitiveParameterValue::__construct — 构造一个新的 SensitiveParameterValue 对象
  • SensitiveParameterValue::__debugInfo — Protects the sensitive value against accidental exposure
  • SensitiveParameterValue::getValue — Returns the sensitive value


PHP8 BackedEnum 接口
PHP8 AllowDynamicProperties 类
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定