Test Failed
Push — master ( a76412...1b7368 )
by Fran
13:33 queued 14s
created

SingletonClassTest::init()   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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PSFS\tests\examples;
4
5
use PSFS\base\Security;
6
use PSFS\base\Singleton;
7
8
class SingletonClassTest extends Singleton
9
{
10
    /**
11
     * @Injectable
12
     * @var \PSFS\base\Security $security
13
     */
14
    protected $security;
15
    /**
16
     * @Injectable
17
     * @var \PSFS\tests\examples\NonSingletonClassTest $testClass
18
     */
19
    protected $testClass;
20
    /**
21
     * @var string fieldTest
22
     */
23
    protected $fieldTest;
24
    /**
25
     * @var integer
26
     */
27
    public $publicVariable;
28
    /**
29
     * @var integer
30
     */
31
    private $privateVariable;
0 ignored issues
show
introduced by
The private property $privateVariable is not used, and could be removed.
Loading history...
32
    /**
33
     * @var string
34
     */
35
    public static $staticVariable;
36
37
    public function init()
38
    {
39
        parent::init();
40
    }
41
42
    public function setSecurity(Security $security)
43
    {
44
        $this->security = $security;
45
    }
46
}