SplitSupports::supports()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 1
c 1
b 0
f 1
nc 2
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 2
rs 10
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