Completed
Push — master ( 89fe2f...2bde54 )
by wen
05:41
created

Email::getDefaultValidationRules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
4
namespace Sco\Admin\Form\Elements;
5
6
class Email extends Text
7
{
8
    protected $type = 'email';
9
10
    protected function getDefaultValidationRules()
11
    {
12
        return parent::getDefaultValidationRules() + [
13
                'email' => 'email',
14
            ];
15
    }
16
}
17