com doc/ja: clarify the source example.: language/oop5/decon.xml
| From: | Yoshinari Takaoka | Date: | Wed, 13 Jan 2021 17:20:28 +0000 |
| Subject: | com doc/ja: clarify the source example.: language/oop5/decon.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-6081@lists.php.net to get a copy of this message | ||
Commit: 22ad44db5f5e52b449c089571ca852825d5524e8
Author: Yoshinari Takaoka <mumumu@mumumu.org> Thu, 14 Jan 2021 02:20:28 +0900
Parents: 55fdd10bde50ce6e0e94f512e0d087aa40a46c89
Branches: master
Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=22ad44db5f5e52b449c089571ca852825d5524e8
Log:
clarify the source example.
Changed paths:
M language/oop5/decon.xml
Diff:
diff --git a/language/oop5/decon.xml b/language/oop5/decon.xml
index cbc4c9daa1..1475526d68 100644
--- a/language/oop5/decon.xml
+++ b/language/oop5/decon.xml
@@ -132,7 +132,7 @@ $p3 = new Point(y: 5, x: 4);
対応するオブジェクトのプロパティに昇格させることができます。
コンストラクタの引数をプロパティに代入し、それ以外の操作を行わないことはよくあることです。
コンストラクタのプロモーションは、こういった場合の短縮記法を提供します。
- 上の例は、次のように書き直すことが出来ます。
+
「コンストラクタを引数と一緒に使う」の例は、次のように書き直すことが出来ます。
</para>
<example>
<title>コンストラクタのプロモーションを使う</title>