| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function __construct($label, $attributes) |
||
| 14 | { |
||
| 15 | parent::__construct($label, $attributes); |
||
| 16 | $this->Attributes()->set('type','email'); |
||
| 17 | $this->Attributes()->set('placeholder','[email protected]'); |
||
| 18 | $this->Attributes()->set('pattern','[A-Za-z0-9._%+-]{3,}@[a-zA-Z]{3,}([.]{1}[a-zA-Z]{2,}|[.]{1}[a-zA-Z]{2,}[.]{1}[a-zA-Z]{2,})'); |
||
| 19 | } |
||
| 21 | } |