com doc/ja: Add 'parent' type declaration: language/types/declarations.xml
[email protected] (Yoshinari Takaoka) Sat, 09 Jan 2021 02:34:44 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
Commit: a75e56873266cf736b8aeddb9fa8c184e55cd54e Author: Yoshinari Takaoka <[email protected]> Sat, 9 Jan 2021 11:34:44 +0900 Parents: 4be33ce5f25af316207dacffb830d5346d90f701 Branches: master Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=a75e56873266cf736b8aeddb9fa8c184e55cd54e Log: Add 'parent' type declaration Changed paths: M language/types/declarations.xml Diff: diff --git a/language/types/declarations.xml b/language/types/declarations.xml index f2215f87b9..9e3ffad698 100644 --- a/language/types/declarations.xml +++ b/language/types/declarations.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: d60cfe1bfdfc1b3c297b98153671d7a72fdf2a1f Maintainer: mumumu Status: ready --> +<!-- EN-Revision: f0d6f41604679c93901c62d102167478c3cead5b Maintainer: mumumu Status: ready --> <sect1 xml:id="language.types.declarations"> <title>型宣言</title> @@ -41,7 +41,7 @@ <entry> 値が、指定したクラスやインターフェイスのインスタンスでなければいけません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>self</type></entry> @@ -49,14 +49,22 @@ 値が、そのメソッドが定義されているクラスと同じクラスのインスタンスでなければいけません。 クラスの内部でのみ使えます。 </entry> - <entry></entry> + <entry/> + </row> + <row> + <entry><type>parent</type></entry> + <entry> + 値が、そのプロパティが定義されたクラスの、親クラスのインスタンスでなければいけません。 + クラスの内部でのみ使えます。 + </entry> + <entry/> </row> <row> <entry><type>array</type></entry> <entry> 値が、配列でなければいけません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>callable</type></entry> @@ -64,35 +72,35 @@ 値が、<type>callable</type> でなければいけません。 クラスのプロパティの型では宣言できません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>bool</type></entry> <entry> 値が、bool 値でなければいけません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>float</type></entry> <entry> 値が、float でなければいけません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>int</type></entry> <entry> 値が、int でなければいけません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>string</type></entry> <entry> 値が、文字列でなければいけません。 </entry> - <entry></entry> + <entry/> </row> <row> <entry><type>iterable</type></entry>