reference/reflection/reflectionparameter/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="reflectionparameter.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ReflectionParameter::__construct</refname>
...
...
@@ -9,11 +8,11 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<constructorsynopsis role="ReflectionParameter">
13
12
<modifier>public</modifier> <methodname>ReflectionParameter::__construct</methodname>
14
-
<methodparam><type>callable</type><parameter>function</parameter></methodparam>
15
-
<methodparam><type>mixed</type><parameter>parameter</parameter></methodparam>
16
-
</methodsynopsis>
13
+
<methodparam><type class="union"><type>string</type><type>array</type><type>object</type></type><parameter>function</parameter></methodparam>
14
+
<methodparam><type class="union"><type>int</type><type>string</type></type><parameter>param</parameter></methodparam>
15
+
</constructorsynopsis>
17
16
<para>
18
17
Constructs a <classname>ReflectionParameter</classname> instance.
19
18
</para>
...
...
@@ -32,11 +31,11 @@
32
31
</listitem>
33
32
</varlistentry>
34
33
<varlistentry>
35
-
<term><parameter>parameter</parameter></term>
34
+
<term><parameter>param</parameter></term>
36
35
<listitem>
37
36
<para>
38
37
Either an &integer; specifying the position of the parameter (starting with
39
-
zero), or a the parameter name as &string;.
38
+
zero), or the parameter name as &string;.
40
39
</para>
41
40
</listitem>
42
41
</varlistentry>
...
...
@@ -44,13 +43,6 @@
44
43
</para>
45
44
</refsect1>
46
45

47
-
<refsect1 role="returnvalues">
48
-
&reftitle.returnvalues;
49
-
<para>
50
-
&return.void;
51
-
</para>
52
-
</refsect1>
53
-

54
46
<refsect1 role="examples">
55
47
&reftitle.examples;
56
48
<para>
...
...
@@ -76,7 +68,7 @@ foreach ($reflect->getParameters() as $i => $param) {
76
68
" Passed to by reference: %s\n".
77
69
" Is optional?: %s\n".
78
70
"}\n",
79
-
$i, // $param->getPosition() can be used from PHP 5.2.3
71
+
$i, // $param->getPosition() can be used
80
72
$param->getName(),
81
73
var_export($param->getClass(), 1),
82
74
var_export($param->allowsNull(), 1),
...
...
@@ -136,7 +128,6 @@ Function [ <user> function foo ] {
136
128
</refsect1>
137
129

138
130
</refentry>
139
-

140
131
<!-- Keep this comment at the end of the file
141
132
Local variables:
142
133
mode: sgml
143
134