Completed
Push — master ( 561c31...ac170c )
by Nazar
04:13
created

Index   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 10
Bugs 2 Features 1
Metric Value
wmc 3
c 10
b 2
f 1
lcom 0
cbo 2
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 7 2
A __finish() 0 3 1
1
<?php
2
/**
3
 * @package   CleverStyle CMS
4
 * @author    Nazar Mokrynskyi <[email protected]>
5
 * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi
6
 * @license   MIT License, see license.txt
7
 */
8
namespace cs;
9
10
/**
11
 * @deprecated Use `cs\App` instead
12
 */
13
class Index {
14
	use
15
		Singleton;
16
17
	/**
18
	 * Getter for `controller_path` property (no other properties supported currently)
19
	 *
20
	 * @param string $property
21
	 *
22
	 * @return false|string[]
23
	 */
24
	function __get ($property) {
25
		switch ($property) {
26
			case 'controller_path';
27
				return App::instance()->controller_path;
28
		}
29
		return false;
30
	}
31
	/**
32
	 * Executes plugins processing, blocks and module page generation
33
	 *
34
	 * @deprecated use `cs\App::execute()` instead
35
	 *
36
	 * @throws ExitException
37
	 */
38
	function __finish () {
39
		App::instance()->execute();
40
	}
41
}
42