Passed
Push — master ( a90def...5de986 )
by Chris
04:49
created

SingleValueSelectionTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 8
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSelectionSelected() 0 3 1
1
<?php
2
3
namespace WebTheory\Saveyour\Concerns;
4
5
trait SingleValueSelectionTrait
6
{
7
    /**
8
     *
9
     */
10
    protected function isSelectionSelected(string $value): bool
11
    {
12
        return $value === $this->value;
13
    }
14
}
15