CakeFest 2024: The Official CakePHP Conference

SensitiveParameterValue クラス

(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

うっかり公開してしまうことを防ぎたい、秘密の値

目次

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top