Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function create($method, array $headers, string $data, $ip, $url): Request { |
||
41 | $parsedURL = $this->URLParser->parse($url); |
||
42 | $parsedData = $this->bodyParser->parse($data); |
||
43 | |||
44 | return new Request($method, $headers, $parsedData, $parsedURL->getRequestData(), $ip, $parsedURL->getVersion(), |
||
45 | $parsedURL->getApiKey(), $parsedURL->getEndpoint(), $parsedURL->getExtension(), $parsedURL->getInstance()); |
||
46 | } |
||
47 | } |
||
48 |