Passed
Push — master ( a357e7...195a07 )
by Anton
04:22 queued 01:11
created

Addons   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Schemas {
4
5
	use Utils\Schema;
6
7
	class Addons extends Schema\_Array {
8
9
		protected static $file_name = 'Addons.json';
10
11
		# Constructor
12
13
		public function __construct() {
14
15
			$this->addString('name');
16
17
			$routes = $this->addArray('routes');
18
19
			$routes->addString('path');
20
			$routes->addString('handler');
21
		}
22
	}
23
}
24