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

Addons::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
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