D   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 6
eloc 12
c 2
b 1
f 0
dl 0
loc 40
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A get_property9() 0 3 1
A set_property9() 0 3 1
A getCustomGetterPrefix() 0 3 1
A getCustomSetterPrefix() 0 3 1
A __construct() 0 5 1
A get_attribute8() 0 3 1
1
<?php
2
3
/**
4
 * PHP: Nelson Martell Library file
5
 *
6
 * Copyright © 2016-2021 Nelson Martell (http://nelson6e65.github.io)
7
 *
8
 * Licensed under The MIT License (MIT)
9
 * For full copyright and license information, please see the LICENSE
10
 * Redistributions of files must retain the above copyright notice.
11
 *
12
 * @copyright 2016-2021 Nelson Martell
13
 * @link      http://nelson6e65.github.io/php_nml/
14
 * @since     v0.6.0
15
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License (MIT)
16
 * */
17
18
namespace NelsonMartell\Test\DataProviders\ExampleClass;
19
20
class D extends C
21
{
22
    public function __construct()
23
    {
24
        parent::__construct();
25
        unset(
26
            $this->property9
27
        );
28
    }
29
30
    public static function getCustomGetterPrefix(): string
31
    {
32
        return 'get_';
33
    }
34
35
    public static function getCustomSetterPrefix(): string
36
    {
37
        return 'set_';
38
    }
39
40
41
    private $attribute8 = -8;
42
43
    // phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
44
    public function get_attribute8()
45
    {
46
        return $this->attribute8;
47
    }
48
49
    private $attribute9 = -9;
50
    public $property9;
51
52
    protected function get_property9()
53
    {
54
        return $this->attribute9;
55
    }
56
57
    protected function set_property9($value)
58
    {
59
        $this->attribute9 = $value * 10;
60
    }
61
}
62