diff --git a/language/predefined/attributes.xml b/language/predefined/attributes.xml index 49734b6c453..eaced5e7bf1 100644 --- a/language/predefined/attributes.xml +++ b/language/predefined/attributes.xml @@ -1,6 +1,6 @@ - + 定義済みのアトリビュート @@ -12,6 +12,7 @@ &language.predefined.attributes.attribute; &language.predefined.attributes.allowdynamicproperties; + &language.predefined.attributes.deprecated; &language.predefined.attributes.override; &language.predefined.attributes.returntypewillchange; &language.predefined.attributes.sensitiveparameter; diff --git a/language/predefined/attributes/deprecated.xml b/language/predefined/attributes/deprecated.xml new file mode 100644 index 00000000000..ff1bab94e86 --- /dev/null +++ b/language/predefined/attributes/deprecated.xml @@ -0,0 +1,141 @@ + + + + + + Deprecated クラス + Deprecated + + + +
+ &reftitle.intro; + + このアトリビュートは、機能を非推奨としてマークします。 + マークされた機能を使用すると、E_USER_DEPRECATED エラーが発生します。 + +
+ +
+ &reftitle.classsynopsis; + + + + final + Deprecated + + + &Properties; + + public + readonly + stringnull + message + + + public + readonly + stringnull + since + + + &Methods; + + + + +
+ +
+ &reftitle.properties; + + + message + + + 非推奨となった理由と可能なら代替機能を説明する追加のメッセージ。 + 発生する非推奨エラーのメッセージに含まれます。 + + + + + since + + + 機能がいつから非推奨になったかを示す追加の文字列。 + 内容は PHP によって検証されず、バージョン番号、日付、 + または適切と考えられる他の値を含むことができます。 + 発生する非推奨エラーのメッセージに含まれます。 + + + PHP 自体の機能は、since の値として Major.Minor を利用します。 + 例えば '8.4' です。 + + + + +
+ +
+ &reftitle.examples; + + + +]]> + + &example.outputs.84.similar; + + + + +
+ +
+ &reftitle.seealso; + + アトリビュートの概要 + ReflectionFunctionAbstract::isDeprecated + ReflectionClassConstant::isDeprecated + E_USER_DEPRECATED + +
+ +
+ + &language.predefined.attributes.deprecated.construct; + +
+ diff --git a/language/predefined/attributes/deprecated/construct.xml b/language/predefined/attributes/deprecated/construct.xml new file mode 100644 index 00000000000..52cd1b61d7c --- /dev/null +++ b/language/predefined/attributes/deprecated/construct.xml @@ -0,0 +1,64 @@ + + + + + + + Deprecated::__construct + 新しい Deprecated のインスタンスを作成する + + + + &reftitle.description; + + public Deprecated::__construct + stringnullmessage&null; + stringnullsince&null; + + + 新しい Deprecated のインスタンスを作成します。 + + + + + &reftitle.parameters; + + + message + + + message プロパティの値。 + + + + + since + + + since プロパティの値。 + + + + + + + diff --git a/reference/reflection/reflectionclassconstant/isdeprecated.xml b/reference/reflection/reflectionclassconstant/isdeprecated.xml new file mode 100644 index 00000000000..e098150c5d1 --- /dev/null +++ b/reference/reflection/reflectionclassconstant/isdeprecated.xml @@ -0,0 +1,92 @@ + + + + + + + ReflectionClassConstant::isDeprecated + クラス定数が非推奨かどうかを調べる + + + + &reftitle.description; + + public boolReflectionClassConstant::isDeprecated + + + + クラス定数が非推奨かどうかを調べます。 + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + クラス定数が非推奨なら &true; を、そうでなければ &false; を返します。 + + + + + &reftitle.examples; + + + <methodname>ReflectionClassConstant::isDeprecated</methodname> の例 + + +isDeprecated()); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Deprecated + ReflectionClassConstant::getDocComment + + + + +