Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class CustomSource extends Source |
||
16 | { |
||
17 | /** |
||
18 | * Determine whether this class can handle the source. |
||
19 | */ |
||
20 | 48 | public function matches(): bool |
|
21 | { |
||
22 | 48 | return $this->source instanceof Source; |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * Retrieve the HTTP request. |
||
27 | */ |
||
28 | 1 | public function request(): RequestInterface |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * Retrieve the HTTP response. |
||
35 | * |
||
36 | * @return ResponseInterface |
||
37 | */ |
||
38 | 1 | public function response(): ResponseInterface |
|
41 | } |
||
42 | } |
||
43 |