alexdebril/feed-io

View on GitHub
src/FeedIo/Adapter/NullClient.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace FeedIo\Adapter;

use DateTime;

/**
 * Fake HTTP client
 */
class NullClient implements ClientInterface
{
    /**
     * @param  string                            $url
     * @param  DateTime|null                         $modifiedSince
     * @return \FeedIo\Adapter\ResponseInterface
     */
    public function getResponse(string $url, DateTime $modifiedSince = null): ResponseInterface
    {
        return new NullResponse();
    }
}