Completed
Push — master ( 1c3c2e...248014 )
by Arjay
10:57
created

Date   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 4 1
1
<?php
2
3
namespace Yajra\DataTables\Html\Editor\Fields;
4
5
class Date extends DateTime
6
{
7
    /**
8
     * Make a new instance of a field.
9
     *
10
     * @param string $name
11
     * @param string $label
12
     * @return Field
13
     */
14
    public static function make($name, $label = '')
15
    {
16
        return parent::make($name, $label)->format('YYYY-MM-DD');
17
    }
18
}
19