| 1 | <?php |
||
| 12 | final class FetchCommandResponse |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $number; |
||
| 18 | /** |
||
| 19 | * @var ItemList |
||
| 20 | */ |
||
| 21 | private $dataItemList; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * FetchCommandResponse constructor. |
||
| 25 | * @param int $number |
||
| 26 | * @param ItemList $dataItemList |
||
| 27 | */ |
||
| 28 | 2 | public function __construct(int $number, ItemList $dataItemList) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | 1 | public function getNumber(): int |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return ItemList |
||
| 44 | */ |
||
| 45 | 1 | public function getDataItemList(): ItemList |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 1 | public function __toString(): string |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param string$response |
||
| 64 | * @return FetchCommandResponse |
||
| 65 | */ |
||
| 66 | 3 | public static function fromString(string $response): self |
|
| 76 | |||
| 77 | } |