| 1 | <?php | ||
| 14 | final class FetchCommand extends AbstractCommand implements CommandResponseCanBeParsedInterface | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * @var SequenceSet | ||
| 18 | */ | ||
| 19 | private $set; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var ItemList | ||
| 23 | */ | ||
| 24 | private $list; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var Tag | ||
| 28 | */ | ||
| 29 | private $tag; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param Tag $tag | ||
| 33 | * @param SequenceSet $set | ||
| 34 | * @param ItemList $list | ||
| 35 | */ | ||
| 36 | 3 | public function __construct(Tag $tag, SequenceSet $set, ItemList $list) | |
| 42 | |||
| 43 | /** | ||
| 44 | * @return StreamInterface | ||
| 45 | */ | ||
| 46 | 1 | protected function createStream(): StreamInterface | |
| 56 | |||
| 57 | /** | ||
| 58 | * @return Tag | ||
| 59 | */ | ||
| 60 | 3 | public function getTag(): Tag | |
| 64 | |||
| 65 | /** | ||
| 66 | * @param \Iterator $lineIterator | ||
| 67 | * @return ResponseInterface | ||
| 68 | */ | ||
| 69 | 2 | public function createParsedResponse(\Iterator $lineIterator): ResponseInterface | |
| 73 | } | ||
| 74 |