NullClient   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 4 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the feed-io package.
4
 *
5
 * (c) Alexandre Debril <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace FeedIo\Adapter;
12
13
/**
14
 * Fake HTTP client
15
 */
16
class NullClient implements ClientInterface
17
{
18
19
    /**
20
     * @param  string                            $url
21
     * @param  \DateTime                         $modifiedSince
22
     * @return \FeedIo\Adapter\ResponseInterface
23
     */
24 1
    public function getResponse(string $url, \DateTime $modifiedSince) : ResponseInterface
25
    {
26 1
        return new NullResponse();
27
    }
28
}
29