| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class SingletonClassTestExample extends Singleton |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @Injectable |
||
| 12 | * @var \PSFS\base\Security $security |
||
| 13 | */ |
||
| 14 | protected $security; |
||
| 15 | /** |
||
| 16 | * @Injectable |
||
| 17 | * @var \PSFS\tests\examples\NonSingletonClassTestExample $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) |
||
| 45 | } |
||
| 46 | } |