Completed
Push — master ( 416cb1...222de5 )
by Anton
03:44
created

Password::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 12
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Modules\Profile\Form {
4
5
	use Utils\Form;
6
7
	class Password extends Form {
8
9
		# Constructor
10
11
		public function __construct() {
12
13
			parent::__construct('edit');
14
15
			# Add fields
16
17
			$this->addText('password', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
18
19
			$this->addText('password_new', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
20
21
			$this->addText('password_retype', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
22
		}
23
	}
24
}
25