reference/datetime/datetimeimmutable/createfrommutable.xml
02ff7fef5b34cf8f5395180d9d39fb64d9398d00
...
...
@@ -1,17 +1,16 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="datetimeimmutable.createfrommutable" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>DateTimeImmutable::createFromMutable</refname>
7
-
<refpurpose>Returns new DateTimeImmutable object encapsulating the given DateTime object</refpurpose>
6
+
<refpurpose>Returns new DateTimeImmutable instance encapsulating the given DateTime object</refpurpose>
8
7
</refnamediv>
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis role="oop">
13
-
<modifier>public</modifier> <modifier>static</modifier> <type>DateTimeImmutable</type><methodname>DateTimeImmutable::createFromMutable</methodname>
14
-
<methodparam><type>DateTime</type><parameter>datetime</parameter></methodparam>
11
+
<methodsynopsis role="DateTimeImmutable">
12
+
<modifier>public</modifier> <modifier>static</modifier> <type>static</type><methodname>DateTimeImmutable::createFromMutable</methodname>
13
+
<methodparam><type>DateTime</type><parameter>object</parameter></methodparam>
15
14
</methodsynopsis>
16
15
</refsect1>
17
16

...
...
@@ -20,12 +19,12 @@
20
19
<para>
21
20
<variablelist>
22
21
<varlistentry>
23
-
<term><parameter>datetime</parameter></term>
22
+
<term><parameter>object</parameter></term>
24
23
<listitem>
25
24
<para>
26
25
The mutable <classname>DateTime</classname> object that you want to
27
26
convert to an immutable version. This object is not modified, but
28
-
instead a new <classname>DateTimeImmutable</classname> object is
27
+
instead a new <classname>DateTimeImmutable</classname> instance is
29
28
created containing the same date time and timezone information.
30
29
</para>
31
30
</listitem>
...
...
@@ -34,6 +33,38 @@
34
33
</para>
35
34
</refsect1>
36
35

36
+
<refsect1 role="returnvalues">
37
+
&reftitle.returnvalues;
38
+
<para>
39
+
Returns a new <classname>DateTimeImmutable</classname> instance.
40
+
</para>
41
+
</refsect1>
42
+

43
+
<refsect1 role="changelog">
44
+
&reftitle.changelog;
45
+
<para>
46
+
<informaltable>
47
+
<tgroup cols="2">
48
+
<thead>
49
+
<row>
50
+
<entry>&Version;</entry>
51
+
<entry>&Description;</entry>
52
+
</row>
53
+
</thead>
54
+
<tbody>
55
+
<row>
56
+
<entry>8.0.0</entry>
57
+
<entry>
58
+
The method returns an instance of the currently invoked class now. Previously, it created a new instance
59
+
of <classname>DateTimeImmutable</classname>.
60
+
</entry>
61
+
</row>
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
65
+
</para>
66
+
</refsect1>
67
+

37
68
<refsect1 role="examples">
38
69
&reftitle.examples;
39
70
<para>
...
...
@@ -52,14 +83,7 @@ $immutable = DateTimeImmutable::createFromMutable( $date );
52
83
</para>
53
84
</refsect1>
54
85

55
-
<refsect1 role="returnvalues">
56
-
&reftitle.returnvalues;
57
-
<para>
58
-
Returns a new <classname>DateTimeImmutable</classname> instance.
59
-
</para>
60
-
</refsect1>
61
86
</refentry>
62
-

63
87
<!-- Keep this comment at the end of the file
64
88
Local variables:
65
89
mode: sgml
66
90