Completed
Push — master ( 4b2e15...e1e67f )
by Elf
03:57
created

Sex

Complexity

Total Complexity 0

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 19
wmc 0
lcom 0
cbo 2
1
<?php
2
3
namespace ElfSundae\Laravel\Support\Constants;
4
5
use ElfSundae\Laravel\Support\Enum;
6
use ElfSundae\Laravel\Support\Traits\EnumKeyString;
7
8
class Sex extends Enum
9
{
10
    use EnumKeyString;
11
12
    const UNKNOWN = 0;
13
    const MALE = 1;
14
    const FEMALE = 2;
15
16
    /**
17
     * The transfer keys.
18
     *
19
     * @var array
20
     */
21
    protected static $transferKeys = [
22
        'UNKNOWN' => '',
23
        'MALE' => '男',
24
        'FEMALE' => '女',
25
    ];
26
}
27