PHP8 The SensitiveParameterValue class

2023-08-22 11:25 更新

(PHP 8 >= 8.2.0)

簡介

SensitiveParameterValue 類允許包裝敏感值以防止它們意外暴露。

具有 SensitiveParameter 屬性的參數(shù)值將自動包裝在堆棧跟蹤內(nèi)的 SensitiveParameterValue 對象內(nèi)。

類摘要

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 — 構(gòu)造一個新的 SensitiveParameterValue 對象
  • SensitiveParameterValue::__debugInfo — Protects the sensitive value against accidental exposure
  • SensitiveParameterValue::getValue — Returns the sensitive value


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號