1Enum
2-----
3<?php
4
5enum Suit: string
6{
7    case Hearts = 'H';
8    case Diamonds;
9    case Clubs = 'C';
10    case Spades = 'S';
11}
12-----
13array(
14    0: Stmt_Enum(
15        attrGroups: array(
16        )
17        name: Identifier(
18            name: Suit
19        )
20        scalarType: Identifier(
21            name: string
22        )
23        implements: array(
24        )
25        stmts: array(
26            0: Stmt_EnumCase(
27                attrGroups: array(
28                )
29                name: Identifier(
30                    name: Hearts
31                )
32                expr: Scalar_String(
33                    value: H
34                )
35            )
36            1: Stmt_EnumCase(
37                attrGroups: array(
38                )
39                name: Identifier(
40                    name: Diamonds
41                )
42                expr: null
43            )
44            2: Stmt_EnumCase(
45                attrGroups: array(
46                )
47                name: Identifier(
48                    name: Clubs
49                )
50                expr: Scalar_String(
51                    value: C
52                )
53            )
54            3: Stmt_EnumCase(
55                attrGroups: array(
56                )
57                name: Identifier(
58                    name: Spades
59                )
60                expr: Scalar_String(
61                    value: S
62                )
63            )
64        )
65    )
66)
67