reference/reflection/reflectionproperty.xml
14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<phpdoc:classref xml:id="class.reflectionproperty" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
5
4

6
5
<title>The ReflectionProperty class</title>
...
...
@@ -13,7 +12,7 @@
13
12
&reftitle.intro;
14
13
<para>
15
14
The <classname>ReflectionProperty</classname> class reports
16
-
information about classes properties.
15
+
information about class properties.
17
16
</para>
18
17
</section>
19
18
<!-- }}} -->
...
...
@@ -22,59 +21,67 @@
22
21
&reftitle.classsynopsis;
23
22

24
23
<!-- {{{ Synopsis -->
25
-
<classsynopsis>
26
-
<ooclass><classname>ReflectionProperty</classname></ooclass>
27
-

28
-
<!-- {{{ Class synopsis -->
29
-
<classsynopsisinfo>
30
-
<ooclass>
31
-
<classname>ReflectionProperty</classname>
32
-
</ooclass>
33
-
34
-
<oointerface>
35
-
<interfacename>Reflector</interfacename>
36
-
</oointerface>
37
-
</classsynopsisinfo>
38
-
<!-- }}} -->
24
+
<classsynopsis class="class">
25
+
<ooclass>
26
+
<classname>ReflectionProperty</classname>
27
+
</ooclass>
28
+

29
+
<oointerface>
30
+
<modifier>implements</modifier>
31
+
<interfacename>Reflector</interfacename>
32
+
</oointerface>
33
+

39
34
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
40
35
<fieldsynopsis>
36
+
<modifier>public</modifier>
41
37
<modifier>const</modifier>
42
-
<type>integer</type>
38
+
<type>int</type>
43
39
<varname linkend="reflectionproperty.constants.is-static">ReflectionProperty::IS_STATIC</varname>
44
-
<initializer>1</initializer>
45
40
</fieldsynopsis>
46
41
<fieldsynopsis>
42
+
<modifier>public</modifier>
47
43
<modifier>const</modifier>
48
-
<type>integer</type>
44
+
<type>int</type>
45
+
<varname linkend="reflectionproperty.constants.is-readonly">ReflectionProperty::IS_READONLY</varname>
46
+
</fieldsynopsis>
47
+
<fieldsynopsis>
48
+
<modifier>public</modifier>
49
+
<modifier>const</modifier>
50
+
<type>int</type>
49
51
<varname linkend="reflectionproperty.constants.is-public">ReflectionProperty::IS_PUBLIC</varname>
50
-
<initializer>256</initializer>
51
52
</fieldsynopsis>
52
53
<fieldsynopsis>
54
+
<modifier>public</modifier>
53
55
<modifier>const</modifier>
54
-
<type>integer</type>
56
+
<type>int</type>
55
57
<varname linkend="reflectionproperty.constants.is-protected">ReflectionProperty::IS_PROTECTED</varname>
56
-
<initializer>512</initializer>
57
58
</fieldsynopsis>
58
59
<fieldsynopsis>
60
+
<modifier>public</modifier>
59
61
<modifier>const</modifier>
60
-
<type>integer</type>
62
+
<type>int</type>
61
63
<varname linkend="reflectionproperty.constants.is-private">ReflectionProperty::IS_PRIVATE</varname>
62
-
<initializer>1024</initializer>
63
64
</fieldsynopsis>
64
65

65
66
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
66
67
<fieldsynopsis>
67
68
<modifier>public</modifier>
69
+
<type>string</type>
68
70
<varname linkend="reflectionproperty.props.name">name</varname>
69
71
</fieldsynopsis>
70
72
<fieldsynopsis>
71
73
<modifier>public</modifier>
74
+
<type>string</type>
72
75
<varname linkend="reflectionproperty.props.class">class</varname>
73
76
</fieldsynopsis>
74
77

75
-
76
78
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
77
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
79
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='ReflectionProperty'])">
80
+
<xi:fallback/>
81
+
</xi:include>
82
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='ReflectionProperty'])">
83
+
<xi:fallback/>
84
+
</xi:include>
78
85
</classsynopsis>
79
86
<!-- }}} -->
80
87

...
...
@@ -121,6 +128,17 @@
121
128
<para>
122
129
Indicates <link linkend="language.oop5.static">static</link>
123
130
properties.
131
+
Prior to PHP 7.4.0, the value was <literal>1</literal>.
132
+
</para>
133
+
</listitem>
134
+
</varlistentry>
135
+

136
+
<varlistentry xml:id="reflectionproperty.constants.is-readonly">
137
+
<term><constant>ReflectionProperty::IS_READONLY</constant></term>
138
+
<listitem>
139
+
<para>
140
+
Indicates <link linkend="language.oop5.properties.readonly-properties">readonly</link>
141
+
properties. Available as of PHP 8.1.0.
124
142
</para>
125
143
</listitem>
126
144
</varlistentry>
...
...
@@ -131,6 +149,7 @@
131
149
<para>
132
150
Indicates <link linkend="language.oop5.visibility">public</link>
133
151
properties.
152
+
Prior to PHP 7.4.0, the value was <literal>256</literal>.
134
153
</para>
135
154
</listitem>
136
155
</varlistentry>
...
...
@@ -141,6 +160,7 @@
141
160
<para>
142
161
Indicates <link linkend="language.oop5.visibility">protected</link>
143
162
properties.
163
+
Prior to PHP 7.4.0, the value was <literal>512</literal>.
144
164
</para>
145
165
</listitem>
146
166
</varlistentry>
...
...
@@ -151,22 +171,51 @@
151
171
<para>
152
172
Indicates <link linkend="language.oop5.visibility">private</link>
153
173
properties.
174
+
Prior to PHP 7.4.0, the value was <literal>1024</literal>.
154
175
</para>
155
176
</listitem>
156
177
</varlistentry>
157
178

158
179
</variablelist>
180
+
<note>
181
+
<para>
182
+
The values of these constants may change between PHP versions.
183
+
It is recommended to always use the constants
184
+
and not rely on the values directly.
185
+
</para>
186
+
</note>
159
187
</section>
160
188
</section>
161
189
<!-- }}} -->
162
190

191
+
<section role="changelog">
192
+
&reftitle.changelog;
193
+
<informaltable>
194
+
<tgroup cols="2">
195
+
<thead>
196
+
<row>
197
+
<entry>&Version;</entry>
198
+
<entry>&Description;</entry>
199
+
</row>
200
+
</thead>
201
+
<tbody>
202
+
<row>
203
+
<entry>8.0.0</entry>
204
+
<entry>
205
+
<methodname>ReflectionProperty::export</methodname> was removed.
206
+
</entry>
207
+
</row>
208
+
</tbody>
209
+
</tgroup>
210
+
</informaltable>
211
+
</section>
212
+

163
213

164
214
</partintro>
165
215

166
216
&reference.reflection.entities.reflectionproperty;
167
217

168
218
</phpdoc:classref>
169
-

170
219
<!-- Keep this comment at the end of the file
171
220
Local variables:
172
221
mode: sgml
173
222