| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class LegacyCallRequest implements Request |
||
| 20 | { |
||
| 21 | private const TYPE = 6; |
||
| 22 | |||
| 23 | /** @var non-empty-array<int, string|array> */ |
||
|
|
|||
| 24 | private $body; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param non-empty-array<int, string|array> $body |
||
| 28 | */ |
||
| 29 | private function __construct($body) |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function fromCallRequest(CallRequest $request) : self |
||
| 35 | { |
||
| 36 | return new self($request->getBody()); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getType() : int |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getBody() : array |
||
| 47 | } |
||
| 48 | } |
||
| 49 |