File: enumeration.php

package info (click to toggle)
dia2code 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,384 kB
  • sloc: cpp: 8,163; sh: 4,280; php: 289; cs: 267; java: 219; makefile: 49; ansic: 38
file content (19 lines) | stat: -rw-r--r-- 246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * enum class
 */
class enumeration extends SplEnum {
    const __default = self::ENUM_1;

    /**
     * enum1
     */
    const ENUM_1 = 1;
    /**
     * enum2
     */
    const ENUM_2 = 0;
    const ENUM_3 = 1;
    const  = 2;
}
?>