D::set_property9()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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