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

Index::render_title()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 16
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 16
rs 9.2
cc 4
eloc 9
nc 3
nop 0
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