1Enum formatting preservation
2-----
3<?php
4enum X: int
5{}
6-----
7$stmts[0]->scalarType = null;
8-----
9<?php
10enum X
11{}
12-----
13<?php
14enum X {
15    case
16        Y = 1;
17}
18-----
19$stmts[0]->stmts[0]->expr = null;
20-----
21<?php
22enum X {
23    case
24        Y;
25}
26-----
27<?php
28enum X
29{}
30-----
31$stmts[0]->scalarType = new Node\Identifier('int');
32-----
33<?php
34enum X : int
35{}
36-----
37<?php
38enum X
39implements Y
40{}
41-----
42$stmts[0]->scalarType = new Node\Identifier('int');
43-----
44<?php
45enum X : int
46implements Y
47{}
48-----
49<?php
50enum X {
51    case
52        Y;
53}
54-----
55$stmts[0]->stmts[0]->expr = new Scalar\LNumber(1);
56-----
57<?php
58enum X {
59    case
60        Y = 1;
61}
62-----
63<?php
64enum X {
65    case A;
66
67    case B;
68}
69-----
70$stmts[0]->stmts[] = new Node\Stmt\EnumCase('C');
71-----
72<?php
73enum X {
74    case A;
75
76    case B;
77    case C;
78}
79-----
80<?php
81enum X
82implements Y
83{}
84-----
85$stmts[0]->implements[] = new Node\Name('Z');
86-----
87<?php
88enum X
89implements Y, Z
90{}
91-----
92<?php
93enum X
94{}
95-----
96$stmts[0]->implements[] = new Node\Name('Y');
97-----
98<?php
99enum X implements Y
100{}