Create   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
/**
4
 * @package Cadmium\System\Modules\Filemanager
5
 * @author Anton Romanov
6
 * @copyright Copyright (c) 2015-2017, Anton Romanov
7
 * @link http://cadmium-cms.com
8
 */
9
10
namespace Modules\Filemanager\Form {
11
12
	use Utils\Form, Language;
13
14
	class Create extends Form {
15
16
		protected $name = 'create';
17
18
		/**
19
		 * Constructor
20
		 */
21
22
		public function __construct() {
23
24
			$this->addText('name', '', FORM_FIELD_TEXT, CONFIG_FILEMANAGER_NAME_MAX_LENGTH,
25
26
				['placeholder' => Language::get('FILEMANAGER_LABEL_CREATE'), 'required' => true]);
27
		}
28
	}
29
}
30