Addon   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 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\Prototype {
11
12
	use Utils\Schema;
13
14
	class Addon extends Schema\_Object {
15
16
		/**
17
		 * Constructor
18
		 */
19
20
		public function __construct() {
21
22
			$this->addString('name');
23
			$this->addString('title');
24
			$this->addString('description');
25
			$this->addString('version');
26
			$this->addString('author');
27
			$this->addString('website');
28
			$this->addString('browse_url');
29
30
			$routes = $this->addArray('routes');
31
32
			$routes->addString('path');
33
			$routes->addString('handler');
34
		}
35
	}
36
}
37