SplitSupports   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A supports() 0 3 2
1
<?php
2
3
namespace Zenstruck\Porpaginas\Specification\Normalizer;
4
5
/**
6
 * @author Kevin Bond <[email protected]>
7
 */
8
trait SplitSupports
9
{
10 28
    public function supports($specification, $context): bool
11
    {
12 28
        return $this->supportsSpecification($specification) && $this->supportsContext($context);
13
    }
14
15
    abstract protected function supportsSpecification($specification): bool;
16
17
    abstract protected function supportsContext($context): bool;
18
}
19