Builder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A table() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cortex\Foundation\Overrides\Yajra\DataTables\Html;
6
7
use Illuminate\Support\HtmlString;
8
use Yajra\DataTables\Html\Builder as BaseBuilder;
9
10
class Builder extends BaseBuilder
11
{
12
    /**
13
     * Generate DataTable's table html.
14
     *
15
     * @param array $attributes
16
     * @param bool  $drawFooter
17
     * @param bool  $drawSearch
18
     *
19
     * @return \Illuminate\Support\HtmlString
20
     */
21
    public function table(array $attributes = [], $drawFooter = false, $drawSearch = false)
22
    {
23
        $this->tableAttributes = array_merge($this->getTableAttributes(), $attributes);
24
        $htmlAttr = $this->html->attributes($this->tableAttributes);
25
        $tableHtml = '<table '.$htmlAttr.'></table>';
26
27
        return new HtmlString($tableHtml);
28
    }
29
}
30