Critical   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A match() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of cloak.
5
 *
6
 * (c) Noritaka Horio <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace cloak\result\specification;
13
14
use cloak\result\Specification;
15
use cloak\result\CoverageResultNode;
16
17
18
/**
19
 * Class Critical
20
 * @package cloak\result\specification
21
 */
22
class Critical extends CoverageSpecification implements Specification
23
{
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function match(CoverageResultNode $coverageResult)
29
    {
30
        return $coverageResult->isCoverageLessThan($this->coverage);
31
    }
32
33
}
34