| 1 | <?php declare(strict_types=1); |
||
| 15 | class Request |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $url; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \DateTime |
||
| 25 | */ |
||
| 26 | protected $modifiedSince; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var \FeedIo\Adapter\ResponseInterface |
||
| 30 | */ |
||
| 31 | protected $response; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Request constructor. |
||
| 35 | * @param $url |
||
| 36 | * @param $modifiedSince |
||
| 37 | */ |
||
| 38 | 4 | public function __construct(string $url, \DateTime $modifiedSince = null) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 4 | public function getUrl(): string |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return \DateTime |
||
| 54 | */ |
||
| 55 | 3 | public function getModifiedSince(): \DateTime |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return ResponseInterface |
||
| 62 | */ |
||
| 63 | 2 | public function getResponse(): ResponseInterface |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @param ResponseInterface $response |
||
| 70 | */ |
||
| 71 | 2 | public function setResponse(ResponseInterface $response) |
|
| 75 | } |
||
| 76 |