Completed
Push — master ( 50be05...1c3c2e )
by Arjay
01:18
created

Date::make()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Yajra\DataTables\Html\Editor;
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