Completed
Push — Grotax-Grotax-patch-1 ( 7ff330 )
by Alex
02:18
created

NullClient::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
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($url, \DateTime $modifiedSince)
25
    {
26 1
        return new NullResponse();
27
    }
28
}
29