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

Platform   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init_platform() 0 6 1
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