| 1 | <?php | ||
| 13 | final class FetchCommandResponse | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * @var int | ||
| 17 | */ | ||
| 18 | private $number; | ||
| 19 | /** | ||
| 20 | * @var ItemList | ||
| 21 | */ | ||
| 22 | private $dataItemList; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * FetchCommandResponse constructor. | ||
| 26 | * @param int $number | ||
| 27 | * @param ItemList $dataItemList | ||
| 28 | */ | ||
| 29 | public function __construct(int $number, ItemList $dataItemList) | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @return int | ||
| 37 | */ | ||
| 38 | public function getNumber(): int | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @return ItemList | ||
| 45 | */ | ||
| 46 | public function getDataItemList(): ItemList | ||
| 50 | |||
| 51 | /** | ||
| 52 | * @param ResponseInterface $response | ||
| 53 | * @return FetchCommandResponse | ||
| 54 | */ | ||
| 55 | public static function fromResponse(ResponseInterface $response): self | ||
| 67 | |||
| 68 | } |