Completed
Push — master ( 032e9a...f4f4f4 )
by Arjay
05:40
created

DateTime::format()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Yajra\DataTables\Html\Editor;
4
5
class DateTime extends Field
6
{
7
    protected $type = 'datetime';
8
9
    /**
10
     * Set dateTime format.
11
     *
12
     * @param string $format
13
     * @return $this
14
     */
15
    public function format($format)
16
    {
17
        $this->attributes['format'] = $format;
18
19
        return $this;
20
    }
21
}
22