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

Select::options()   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 Select extends Field
6
{
7
    protected $type = 'select';
8
9
    /**
10
     * Set select options.
11
     *
12
     * @param array $options
13
     * @return $this
14
     */
15
    public function options(array $options)
16
    {
17
        $this->attributes['options'] = $options;
18
19
        return $this;
20
    }
21
}
22