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

Boolean   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 6 1
1
<?php
2
3
namespace Yajra\DataTables\Html\Editor;
4
5
class Boolean extends Checkbox
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)->separator(',')->options(
17
            Options::make()->append('', 1)
18
        );
19
    }
20
}
21