language/predefined/iteratoraggregate.xml
92ae371db30ae40f0bc7bb818b3d4ced3adc5866
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<phpdoc:classref xml:id="class.iteratoraggregate" 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 IteratorAggregate interface</title>
...
...
@@ -21,24 +20,20 @@
21
20
&reftitle.interfacesynopsis;
22
21

23
22
<!-- {{{ Synopsis -->
24
-
<classsynopsis>
25
-
<ooclass><classname>IteratorAggregate</classname></ooclass>
26
-

27
-
<!-- {{{ Class synopsis -->
28
-
<classsynopsisinfo>
29
-
<ooclass>
30
-
<classname>IteratorAggregate</classname>
31
-
</ooclass>
32
-
33
-
<ooclass>
34
-
<modifier>extends</modifier>
35
-
<classname>Traversable</classname>
36
-
</ooclass>
37
-
</classsynopsisinfo>
38
-
<!-- }}} -->
23
+
<classsynopsis class="interface">
24
+
<oointerface>
25
+
<interfacename>IteratorAggregate</interfacename>
26
+
</oointerface>
27
+

28
+
<oointerface>
29
+
<modifier>extends</modifier>
30
+
<interfacename>Traversable</interfacename>
31
+
</oointerface>
39
32

40
33
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
41
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoraggregate')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
34
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoraggregate')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='IteratorAggregate'])">
35
+
<xi:fallback/>
36
+
</xi:include>
42
37
</classsynopsis>
43
38
<!-- }}} -->
44
39

...
...
@@ -54,12 +49,13 @@ class myData implements IteratorAggregate {
54
49
public $property1 = "Public property one";
55
50
public $property2 = "Public property two";
56
51
public $property3 = "Public property three";
52
+
public $property4 = "";
57
53

58
54
public function __construct() {
59
55
$this->property4 = "last property";
60
56
}
61
57

62
-
public function getIterator() {
58
+
public function getIterator(): Traversable {
63
59
return new ArrayIterator($this);
64
60
}
65
61
}
...
...
@@ -99,7 +95,6 @@ string(13) "last property"
99
95
&language.predefined.iteratoraggregate.getiterator;
100
96

101
97
</phpdoc:classref>
102
-

103
98
<!-- Keep this comment at the end of the file
104
99
Local variables:
105
100
mode: sgml
106
101