| 1 | <?php declare(strict_types=1); |
||
| 18 | class ResponseBuilder |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int $maxAge max-age in seconds |
||
| 23 | */ |
||
| 24 | protected $maxAge; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var bool $public is the response public |
||
| 28 | */ |
||
| 29 | protected $public; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param int $maxAge |
||
| 33 | * @param bool $public |
||
| 34 | */ |
||
| 35 | 4 | public function __construct(int $maxAge = 600, bool $public = true) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $format |
||
| 43 | * @param FormatterInterface $formatter |
||
| 44 | * @param FeedInterface $feed |
||
| 45 | * @return ResponseInterface |
||
| 46 | */ |
||
| 47 | 4 | public function createResponse(string $format, FormatterInterface $formatter, FeedInterface $feed) : ResponseInterface |
|
| 61 | } |
||
| 62 |