reference/reflection/reflectiontype.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.reflectiontype" 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 ReflectionType class</title>
...
...
@@ -13,11 +12,12 @@
13
12
&reftitle.intro;
14
13
<para>
15
14
The <classname>ReflectionType</classname> class reports
16
-
information about a function's return type.
15
+
information about a function's parameter/return type or a class's property type.
17
16
The Reflection extension declares the following subtypes:
18
17
<simplelist>
19
18
<member><classname>ReflectionNamedType</classname> (as of PHP 7.1.0)</member>
20
19
<member><classname>ReflectionUnionType</classname> (as of PHP 8.0.0)</member>
20
+
<member><classname>ReflectionIntersectionType</classname> (as of PHP 8.1.0)</member>
21
21
</simplelist>
22
22
</para>
23
23
</section>
...
...
@@ -27,27 +27,21 @@
27
27
&reftitle.classsynopsis;
28
28

29
29
<!-- {{{ Synopsis -->
30
-
<classsynopsis>
31
-
<ooclass><classname>ReflectionType</classname></ooclass>
30
+
<classsynopsis class="class">
31
+
<ooclass>
32
+
<modifier>abstract</modifier>
33
+
<classname>ReflectionType</classname>
34
+
</ooclass>
35
+

36
+
<oointerface>
37
+
<modifier>implements</modifier>
38
+
<interfacename>Stringable</interfacename>
39
+
</oointerface>
32
40

33
-
<!-- {{{ Class synopsis -->
34
-
<classsynopsisinfo>
35
-
<ooclass>
36
-
<modifier>abstract</modifier>
37
-
<classname>ReflectionType</classname>
38
-
</ooclass>
39
-
</classsynopsisinfo>
40
-
<!-- }}} -->
41
41
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
42
-
<!--
43
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectiontype')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])">
44
-
<xi:fallback />
42
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectiontype')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='ReflectionType'])">
43
+
<xi:fallback/>
45
44
</xi:include>
46
-
-->
47
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectiontype')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])">
48
-
<xi:fallback />
49
-
</xi:include>
50
-

51
45
</classsynopsis>
52
46
<!-- }}} -->
53
47
</section>
...
...
@@ -82,7 +76,6 @@
82
76
&reference.reflection.entities.reflectiontype;
83
77

84
78
</phpdoc:classref>
85
-

86
79
<!-- Keep this comment at the end of the file
87
80
Local variables:
88
81
mode: sgml
89
82