Completed
Push — master ( 51084e...d852c9 )
by Yaro
07:57
created

Tooltip   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 22
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A tooltip() 0 6 1
A getTooltip() 0 4 1
A hasTooltip() 0 4 1
1
<?php
2
3
namespace Yaro\Jarboe\Table\Fields\Traits;
4
5
use Illuminate\Http\Request;
6
use Illuminate\Http\UploadedFile;
7
use Illuminate\Support\Facades\Storage as IlluminateStorage;
8
9
trait Tooltip
10
{
11
    protected $tooltip;
12
13 4
    public function tooltip($message)
14
    {
15 4
        $this->tooltip = $message;
16
17 4
        return $this;
18
    }
19
20 4
    public function getTooltip()
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...
21
    {
22 4
        return $this->tooltip;
23
    }
24
25 8
    public function hasTooltip()
26
    {
27 8
        return (bool) $this->tooltip;
28
    }
29
30
}
31