File: SerializableEnum.php

package info (click to toggle)
php-enum 4.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 556 kB
  • sloc: php: 3,481; xml: 15; makefile: 8
file content (27 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace MabeEnumTest\TestAsset;

use MabeEnum\Enum;
use MabeEnum\EnumSerializableTrait;
use Serializable;

/**
 * Basic serializable enumeration
 *
 * @link http://github.com/marc-mabe/php-enum for the canonical source repository
 * @copyright 2020, Marc Bennewitz
 * @license http://github.com/marc-mabe/php-enum/blob/master/LICENSE.txt New BSD License
 *
 * @method static static INT()
 * @method static static NIL()
 * @method static static STR()
 */
class SerializableEnum extends Enum implements Serializable
{
    use EnumSerializableTrait;

    const INT = 0;
    const NIL = null;
    const STR = '';
}