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

4
3
<refentry xml:id="reflectionfunction.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ReflectionFunction::__construct</refname>
...
...
@@ -9,10 +8,10 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<constructorsynopsis role="ReflectionFunction">
13
12
<modifier>public</modifier> <methodname>ReflectionFunction::__construct</methodname>
14
-
<methodparam><type>mixed</type><parameter>name</parameter></methodparam>
15
-
</methodsynopsis>
13
+
<methodparam><type class="union"><type>Closure</type><type>string</type></type><parameter>function</parameter></methodparam>
14
+
</constructorsynopsis>
16
15
<para>
17
16
Constructs a <classname>ReflectionFunction</classname> object.
18
17
</para>
...
...
@@ -23,7 +22,7 @@
23
22
<para>
24
23
<variablelist>
25
24
<varlistentry>
26
-
<term><parameter>name</parameter></term>
25
+
<term><parameter>function</parameter></term>
27
26
<listitem>
28
27
<para>
29
28
The name of the function to reflect or a <link linkend="functions.anonymous">closure</link>.
...
...
@@ -34,45 +33,14 @@
34
33
</para>
35
34
</refsect1>
36
35

37
-
<refsect1 role="returnvalues">
38
-
&reftitle.returnvalues;
39
-
<para>
40
-
&return.void;
41
-
</para>
42
-
</refsect1>
43
-

44
36
<refsect1 role="errors">
45
37
&reftitle.errors;
46
38
<para>
47
-
A <classname>ReflectionException</classname> if the <parameter>name</parameter>
39
+
A <classname>ReflectionException</classname> if the <parameter>function</parameter>
48
40
parameter does not contain a valid function.
49
41
</para>
50
42
</refsect1>
51
43

52
-
<refsect1 role="changelog">
53
-
&reftitle.changelog;
54
-
<para>
55
-
<informaltable>
56
-
<tgroup cols="2">
57
-
<thead>
58
-
<row>
59
-
<entry>&Version;</entry>
60
-
<entry>&Description;</entry>
61
-
</row>
62
-
</thead>
63
-
<tbody>
64
-
<row>
65
-
<entry>5.3.0</entry>
66
-
<entry>
67
-
<parameter>name</parameter> can now be a <link linkend="functions.anonymous">closure</link>.
68
-
</entry>
69
-
</row>
70
-
</tbody>
71
-
</tgroup>
72
-
</informaltable>
73
-
</para>
74
-
</refsect1>
75
-

76
44
<refsect1 role="examples">
77
45
&reftitle.examples;
78
46
<para>
...
...
@@ -180,7 +148,6 @@ dumpReflectionFunction(new ReflectionFunction($counter2));
180
148
</refsect1>
181
149

182
150
</refentry>
183
-

184
151
<!-- Keep this comment at the end of the file
185
152
Local variables:
186
153
mode: sgml
187
154