Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 10 | public function init(): void |
|
14 | { |
||
15 | 10 | parent::init(); |
|
16 | 10 | $this->setAttribute('type', 'email'); |
|
17 | 10 | $this->setAttribute('placeholder', 'Enter an email address..'); |
|
18 | 10 | $emailAddressValidator = new ValidatorAdapterZf(new EmailValidator()); |
|
19 | 10 | $this->addValidator($emailAddressValidator); |
|
20 | } |
||
22 |