1Enum
2-----
3<?php
4
5enum A implements B
6{
7    case X;
8    case Y;
9
10    public function foo() {}
11}
12
13enum B: int {
14    case X = 1;
15    case Y = 2;
16}
17
18enum C: string implements D {
19    case Z = 'A';
20}
21
22enum D: \Foo\Bar {}
23-----
24enum A implements B
25{
26    case X;
27    case Y;
28    public function foo()
29    {
30    }
31}
32enum B : int
33{
34    case X = 1;
35    case Y = 2;
36}
37enum C : string implements D
38{
39    case Z = 'A';
40}
41enum D : \Foo\Bar
42{
43}
44