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

DateTime   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 6 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