None::getReleaseTime()   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
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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