Civility::getGender()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of the ByscriptsStaticEntity package.
4
 *
5
 * (c) Thierry Goettelmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Byscripts\StaticEntity\Tests\Fixtures;
12
13
use Byscripts\StaticEntity\AbstractStaticEntity;
14
15
/**
16
 * Class Civility
17
 *
18
 * @author Thierry Goettelmann <[email protected]>
19
 */
20
class Civility extends AbstractStaticEntity
21
{
22
    const MR = 1;
23
    const MRS = 2;
24
25
    private $gender;
26
    private $shortName;
27
28
    static function getDataSet(): array
29
    {
30
        return [
31
            self::MR => [
32
                'gender' => 'Male',
33
                'shortName' => 'Mr.',
34
            ],
35
            self::MRS => [
36
                'gender' => 'Female',
37
                'shortName' => 'Mrs',
38
            ],
39
        ];
40
    }
41
42
    public function getGender(): string
43
    {
44
        return $this->gender;
45
    }
46
47
    public function getShortName(): string
48
    {
49
        return $this->shortName;
50
    }
51
}
52