None   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 34
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getReleaseTime() 0 4 1
A getVersion() 0 4 1
A getType() 0 4 1
A getDataSets() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Crossjoin\Browscap\Source;
5
6
use Crossjoin\Browscap\Type;
7
8
/**
9
 * Class None
10
 *
11
 * @package Crossjoin\Browscap\Source
12
 * @author Christoph Ziegenberg <[email protected]>
13
 * @link https://github.com/crossjoin/browscap
14
 */
15
class None implements SourceInterface, SourceFactoryInterface
16
{
17
    /**
18
     * @inheritdoc
19
     */
20
    public function getReleaseTime() : int
21
    {
22
        return 0;
23
    }
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function getVersion() : int
29
    {
30
        return 0;
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36
    public function getType() : int
37
    {
38
        return Type::UNKNOWN;
39
    }
40
41
    /**
42
     * @inheritdoc
43
     */
44
    public function getDataSets() : \Iterator
45
    {
46
        return new \EmptyIterator();
47
    }
48
}
49