src/FeedIo/Adapter/ClientInterface.php
<?php
declare(strict_types=1);
namespace FeedIo\Adapter;
use DateTime;
/**
* Describes a HTTP Client used by \FeedIo\Reader
*
* getResponse() MUST return an instance of \FeedIo\Adapter\ResponseInterface or throw an exception
*
*/
interface ClientInterface
{
/**
* @param string $url
* @param DateTime|null $modifiedSince
* @throws \FeedIo\Adapter\NotFoundException
* @throws \FeedIo\Adapter\ServerErrorException
* @return \FeedIo\Adapter\ResponseInterface
*/
public function getResponse(string $url, DateTime $modifiedSince = null): ResponseInterface;
}