Completed
Push — master ( e36f45...b5312b )
by Nazar
04:24
created

Platform::init_platform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * @package   CleverStyle CMS
4
 * @author    Nazar Mokrynskyi <[email protected]>
5
 * @copyright Copyright (c) 2016, Nazar Mokrynskyi
6
 * @license   MIT License, see license.txt
7
 */
8
namespace cs\Request;
9
10
trait Platform {
11
	/**
12
	 * Request to administration section
13
	 *
14
	 * @var bool
15
	 */
16
	public $admin;
17
	/**
18
	 * Request to api section
19
	 *
20
	 * @var bool
21
	 */
22
	public $api;
23
	/**
24
	 * Current module, `System` by default
25
	 *
26
	 * @var string
27
	 */
28
	public $current_module;
29
	/**
30
	 * Home page
31
	 *
32
	 * @var bool
33
	 */
34
	public $home_page;
35
	function init_platform () {
36
		$this->admin          = false;
37
		$this->api            = false;
38
		$this->current_module = 'System';
39
		$this->home_page      = false;
40
	}
41
}
42