System   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
/**
4
 * @package Cadmium\System\Schemas
5
 * @author Anton Romanov
6
 * @copyright Copyright (c) 2015-2017, Anton Romanov
7
 * @link http://cadmium-cms.com
8
 */
9
10
namespace Schemas {
11
12
	use Utils\Schema;
13
14
	class System extends Schema\_Object {
15
16
		protected static $file_name = 'System.json';
17
18
		/**
19
		 * Constructor
20
		 */
21
22
		public function __construct() {
23
24
			$database = $this->addObject('database');
25
26
			$database->addString('server');
27
			$database->addString('user');
28
			$database->addString('password');
29
			$database->addString('name');
30
31
			$this->addInteger('time');
32
		}
33
	}
34
}
35