Civility   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 14
dl 0
loc 30
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getShortName() 0 3 1
A getDataSet() 0 10 1
A getGender() 0 3 1
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