Passed
Push — master ( c49c81...0c069c )
by Ferry
03:05
created

Custom::setHtml()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: User
5
 * Date: 1/26/2019
6
 * Time: 6:00 PM
7
 */
8
9
namespace crocodicstudio\crudbooster\types;
10
11
use crocodicstudio\crudbooster\controllers\scaffolding\traits\DefaultOption;
12
use crocodicstudio\crudbooster\controllers\scaffolding\traits\Join;
13
14
class Custom
15
{
16
    use DefaultOption, Join;
17
18
    /**
19
     * @param $html string
20
     * @return $this
21
     */
22
    public function setHtml($html) {
23
        $data = columnSingleton()->getColumn($this->index);
24
        $data->setHtml($html);
0 ignored issues
show
Bug introduced by
The method setHtml() does not exist on crocodicstudio\crudbooster\models\ColumnModel. It seems like you code against a sub-type of crocodicstudio\crudbooster\models\ColumnModel such as crocodicstudio\crudboost...ypes\custom\CustomModel. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
        $data->/** @scrutinizer ignore-call */ 
25
               setHtml($html);
Loading history...
25
        columnSingleton()->setColumn($this->index, $data);
26
        return $this;
27
    }
28
29
}