NullProvider   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
A next() 0 2 1
A valid() 0 3 1
A count() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Eclipxe\XlsxExporter\Providers;
6
7
use Eclipxe\XlsxExporter\ProviderInterface;
8
9
/**
10
 * This is a NullProvider
11
 */
12
class NullProvider implements ProviderInterface
13
{
14 1
    public function get(string $key)
15
    {
16 1
        return null;
17
    }
18
19 1
    public function next(): void
20
    {
21 1
    }
22
23 2
    public function valid(): bool
24
    {
25 2
        return false;
26
    }
27
28 2
    public function count(): int
29
    {
30 2
        return 0;
31
    }
32
}
33