Passed
Push — master ( f40062...72aa71 )
by Nelson
02:53
created

WithMagicPropertiesBaseClass::setBaseProperty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * PHP: Nelson Martell Library file
4
 *
5
 * Copyright © 2016-2019 Nelson Martell (http://nelson6e65.github.io)
6
 *
7
 * Licensed under The MIT License (MIT)
8
 * For full copyright and license information, please see the LICENSE
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright 2016-2019 Nelson Martell
12
 * @link      http://nelson6e65.github.io/php_nml/
13
 * @since     v0.6.0
14
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License (MIT)
15
 * */
16
17
namespace NelsonMartell\Test\DataProviders\ExampleClass;
18
19
use NelsonMartell\PropertiesHandler;
20
use NelsonMartell\IMagicPropertiesContainer;
21
use NelsonMartell\IStrictPropertiesContainer;
22
23
/**
24
 * @internal
25
 *
26
 * @property string $baseProperty
27
 */
28
class WithMagicPropertiesBaseClass implements IStrictPropertiesContainer, IMagicPropertiesContainer
29
{
30
    use PropertiesHandler;
31
32
    public function __construct()
33
    {
34
        $this->baseProperty_ = 'base';
35
    }
36
37
    /**
38
     *
39
     * @var string
40
     */
41
    private $baseProperty_;
42
43
    /**
44
     *
45
     *
46
     * @return string
47
     */
48
    protected function getBaseProperty() : string
49
    {
50
        return $this->baseProperty_;
51
    }
52
53
    /**
54
     *
55
     * @param string $value
56
     */
57
    protected function setBaseProperty(string $value)
58
    {
59
        $this->baseProperty_ = $value;
60
    }
61
62
}
63