forked from php/phd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattribute_formatting_003.xml
More file actions
55 lines (52 loc) · 1.65 KB
/
attribute_formatting_003.xml
File metadata and controls
55 lines (52 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<chapter xml:id="attribute-formatting-003">
<section>
<para>1. Property/Constant with unknown attributes</para>
<classsynopsis class="class">
<ooclass>
<classname>ClassName</classname>
</ooclass>
<classsynopsisinfo role="comment">Properties/Constants</classsynopsisinfo>
<fieldsynopsis>
<modifier role="attribute">#[\UnknownAttribute]</modifier>
<modifier role="attribute">#[\AnotherUnknownAttribute]</modifier>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>string</type>
<varname>CONSTANT_NAME</varname>
</fieldsynopsis>
</classsynopsis>
</section>
<section>
<para>2. Property/Constant with known attributes</para>
<classsynopsis class="class">
<ooclass>
<classname>ClassName</classname>
</ooclass>
<classsynopsisinfo role="comment">Properties/Constants</classsynopsisinfo>
<fieldsynopsis>
<modifier role="attribute">#[\KnownAttribute]</modifier>
<modifier role="attribute">#[\AnotherKnownAttribute]</modifier>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>string</type>
<varname>propertyName</varname>
</fieldsynopsis>
</classsynopsis>
</section>
<section>
<para>3. Constant of a class with attribute</para>
<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[\UnknownAttribute]</modifier>
<classname>ClassName</classname>
</ooclass>
<classsynopsisinfo role="comment">Constants</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>string</type>
<varname>CONSTANT_NAME</varname>
</fieldsynopsis>
</classsynopsis>
</section>
</chapter>