Passed
Push — master ( a82a12...289cbe )
by Anton
03:10
created

Create::getOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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