Completed
Push — master ( 2bde54...385f57 )
by wen
16:28
created

DateTime   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultValue() 0 4 1
1
<?php
2
3
namespace Sco\Admin\Form\Elements;
4
5
class DateTime extends Date
6
{
7
    protected $type = 'datetime';
8
9
    protected $format = 'yyyy-MM-dd HH:mm:ss';
10
11
    protected function getDefaultValue()
12
    {
13
        return date('Y-m-d H:i:s');
14
    }
15
}
16