reference/datetime/datetimeimmutable/createfrommutable.xml
02ff7fef5b34cf8f5395180d9d39fb64d9398d00
...
...
@@ -1,16 +1,15 @@
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>
11
+
<methodsynopsis role="DateTimeImmutable">
12
+
<modifier>public</modifier> <modifier>static</modifier> <type>static</type><methodname>DateTimeImmutable::createFromMutable</methodname>
14
13
<methodparam><type>DateTime</type><parameter>object</parameter></methodparam>
15
14
</methodsynopsis>
16
15
</refsect1>
...
...
@@ -25,7 +24,7 @@
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>
...
...
@@ -41,6 +40,31 @@
41
40
</para>
42
41
</refsect1>
43
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
+

44
68
<refsect1 role="examples">
45
69
&reftitle.examples;
46
70
<para>
...
...
@@ -60,7 +84,6 @@ $immutable = DateTimeImmutable::createFromMutable( $date );
60
84
</refsect1>
61
85

62
86
</refentry>
63
-

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