File: basic-enum.php

package info (click to toggle)
phpab 1.27.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 828 kB
  • sloc: php: 3,428; xml: 162; makefile: 28
file content (16 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php declare(strict_types=1);
namespace test;

enum foo {
    case x;
}

interface barInterface {}

enum bazEnum implements barInterface {
    case y;
}

enum barEnum : int {
    case x = 1;
}