Hidden::value()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace Yaro\Jarboe\Table\Fields;
4
5
use Illuminate\Http\Request;
6
use Yaro\Jarboe\Table\Fields\Traits\Nullable;
7
use Yaro\Jarboe\Table\Fields\Traits\Orderable;
8
9
class Hidden extends AbstractField
0 ignored issues
show
Bug introduced by
The type Yaro\Jarboe\Table\Fields\AbstractField was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
{
11
    use Orderable;
12
    use Nullable;
13
14
    protected $col = 0;
15
    protected $hidden = [
16
        'list'   => true,
17
        'edit'   => false,
18
        'create' => false,
19
    ];
20
21 1
    public function value(Request $request)
22
    {
23 1
        return (string) parent::value($request);
24
    }
25
26 1
    public function getListView($model)
27
    {
28 1
        return view('jarboe::crud.fields.hidden.list', [
29 1
            'model' => $model,
30 1
            'field' => $this,
31
        ]);
32
    }
33
34 1
    public function getEditFormView($model)
35
    {
36 1
        return view('jarboe::crud.fields.hidden.edit', [
37 1
            'model' => $model,
38 1
            'field' => $this,
39
        ]);
40
    }
41
42 1
    public function getCreateFormView()
43
    {
44 1
        return view('jarboe::crud.fields.hidden.create', [
45 1
            'field' => $this,
46
        ]);
47
    }
48
49 1
    public function col(int $col)
50
    {
51 1
        $this->col = 0;
52
53 1
        return $this;
54
    }
55
}
56