Completed
Push — master ( ad2c0d...49711d )
by Yaro
10:29
created

FormClassTrait::formClass()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
namespace Yaro\Jarboe\Table\CrudTraits;
4
5
trait FormClassTrait
6
{
7
    private $formClass = 'col-sm-12 col-md-12 col-lg-12';
8
9 17
    public function formClass(string $class = null)
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
10
    {
11 17
        if (!is_null($class)) {
12 17
            $this->formClass = $class;
13
        }
14
15 17
        return $this->formClass;
16
    }
17
}
18