EmptyCloverFile::getMethods()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace TheCodingMachine\WashingMachine\Clover;
5
6
use TheCodingMachine\WashingMachine\Clover\Analysis\Method;
7
8
final class EmptyCloverFile implements CrapMethodFetcherInterface, CoverageDetectorInterface
9
{
10
    private function __construct()
11
    {
12
    }
13
14
    public static function create() : EmptyCloverFile
15
    {
16
        return new self();
17
    }
18
19
    /**
20
     * @return float
21
     */
22
    public function getCoveragePercentage() : float
23
    {
24
        return 0.0;
25
    }
26
27
    /**
28
     * Returns an array of method objects, indexed by method full name.
29
     *
30
     * @return Method[]
31
     */
32
    public function getMethods() : array
33
    {
34
        return [];
35
    }
36
}
37