Skip to content

Commit 0d99784

Browse files
committed
Document ReflectionParameter::isPromoted()
1 parent 6827037 commit 0d99784

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<refentry xml:id="reflectionparameter.ispromoted" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<refnamediv>
4+
<refname>ReflectionParameter::isPromoted</refname>
5+
<refpurpose>Checks if a parameter is promoted to a property</refpurpose>
6+
</refnamediv>
7+
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis role="ReflectionParameter">
11+
<modifier>public</modifier> <type>bool</type><methodname>ReflectionParameter::isPromoted</methodname>
12+
<void/>
13+
</methodsynopsis>
14+
<simpara>
15+
Checks whether the parameter is
16+
<link linkend="language.oop5.decon.constructor.promotion">promoted</link>
17+
to a property.
18+
</simpara>
19+
</refsect1>
20+
21+
<refsect1 role="parameters">
22+
&reftitle.parameters;
23+
&no.function.parameters;</refsect1>
24+
25+
<refsect1 role="returnvalues">
26+
&reftitle.returnvalues;
27+
<simpara>
28+
&true; if the parameter is promoted to a property, &false; otherwise.
29+
</simpara>
30+
</refsect1>
31+
32+
<refsect1 role="seealso">
33+
&reftitle.seealso;
34+
<simplelist>
35+
<member><methodname>ReflectionProperty::isPromoted</methodname></member>
36+
</simplelist>
37+
</refsect1>
38+
39+
</refentry>
40+
<!-- Keep this comment at the end of the file
41+
Local variables:
42+
mode: sgml
43+
sgml-omittag:t
44+
sgml-shorttag:t
45+
sgml-minimize-attributes:nil
46+
sgml-always-quote-attributes:t
47+
sgml-indent-step:1
48+
sgml-indent-data:t
49+
indent-tabs-mode:nil
50+
sgml-parent-document:nil
51+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
52+
sgml-exposed-tags:nil
53+
sgml-local-catalogs:nil
54+
sgml-local-ecat-files:nil
55+
End:
56+
vim600: syn=xml fen fdm=syntax fdl=2 si
57+
vim: et tw=78 syn=sgml
58+
vi: ts=1 sw=1
59+
-->

reference/reflection/versions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
<function name="reflectionparameter::iscallable" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8"/>
104104
<function name="reflectionparameter::isdefaultvalueconstant" from="PHP 5 &gt;= 5.4.6, PHP 7, PHP 8"/>
105105
<function name="reflectionparameter::ispassedbyreference" from="PHP 5, PHP 7, PHP 8"/>
106+
<function name="reflectionparameter::ispromoted" from="PHP 8"/>
106107
<function name="reflectionparameter::getdeclaringfunction" from="PHP 5 &gt;= 5.1.3, PHP 7, PHP 8"/>
107108
<function name="reflectionparameter::getdeclaringclass" from="PHP 5 &gt;= 5.1.3, PHP 7, PHP 8"/>
108109
<function name="reflectionparameter::getclass" from="PHP 5, PHP 7, PHP 8"/>

0 commit comments

Comments
 (0)