| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 1 | public function get(int $year = null, int $month = null, int $day = null, string $status = 'All') |
|
| 20 | { |
||
| 21 | // make the URL for this request |
||
| 22 | 1 | $url = sprintf( |
|
| 23 | 1 | '%s?Year=%s&Month=%s&Day=%s&Status=%s', |
|
| 24 | 1 | self::URI, |
|
| 25 | 1 | $year, |
|
| 26 | 1 | $month, |
|
| 27 | 1 | $day, |
|
| 28 | 1 | $status |
|
| 29 | ); |
||
| 30 | |||
| 31 | // get the headers for this request |
||
| 32 | 1 | $headers = $this->headers->make('GET', $url); |
|
| 33 | |||
| 34 | // get the response |
||
| 35 | 1 | $response = $this->client->get($url, [ |
|
| 36 | 1 | 'headers' => $headers, |
|
| 37 | ]); |
||
| 38 | |||
| 39 | // return the response |
||
| 40 | 1 | return $response; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |