File: backed-enum.php

package info (click to toggle)
phpab 1.29.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 856 kB
  • sloc: php: 3,467; xml: 162; makefile: 28
file content (8 lines) | stat: -rw-r--r-- 152 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
<?php declare(strict_types=1);

interface Sample {}

enum foo: string implements Sample {
    case A = "StaticStringA";
    case B = 'StaticStringB';
}