Passed
Push — master ( 72aa71...ce35d5 )
by Nelson
03:59
created

WithoutMagicPropertiesClass::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
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\IStrictPropertiesContainer;
21
22
/**
23
 * @internal
24
 *
25
 * @property string $magicProperty
26
 */
27
class WithoutMagicPropertiesClass implements IStrictPropertiesContainer
28
{
29
    use PropertiesHandler;
30
31
    public function __construct()
32
    {
33
        $this->magic_   = 'magic';
34
        $this->noMagicProperty = 'no magic';
35
    }
36
37
    /**
38
     *
39
     * @var string
40
     */
41
    private $magic_;
42
43
    /**
44
     *
45
     *
46
     * @return string
47
     */
48
    protected function getMagicProperty() : string
49
    {
50
        return $this->magic_;
51
    }
52
53
    /**
54
     *
55
     * @param string $value
56
     */
57
    protected function setMagicProperty(string $value)
58
    {
59
        $this->magic_ = $value;
60
    }
61
62
    /**
63
     *
64
     * @var string
65
     */
66
    private $noMagicProperty;
67
68
    /**
69
     *
70
     *
71
     * @return string
72
     */
73
    protected function getNoMagicProperty() : string
74
    {
75
        return $this->noMagicProperty;
76
    }
77
78
    /**
79
     *
80
     * @param string $value
81
     */
82
    protected function setNoMagicProperty(string $value)
83
    {
84
        $this->noMagicProperty = $value;
85
    }
86
87
}
88