Test Failed
Push — master ( 1b7368...050678 )
by Fran
25:16 queued 22:49
created

SingletonClassTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 37
rs 10
c 0
b 0
f 0
wmc 2
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;
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
}