Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class ReactAdapter implements AdapterInterface |
||
10 | { |
||
11 | public static function isInstalled(): bool |
||
12 | { |
||
13 | return class_exists('React\Http\Message\Uri'); |
||
14 | } |
||
15 | |||
16 | public function createUri(string $uri = ''): UriInterface |
||
17 | { |
||
18 | return new Uri($uri); |
||
19 | } |
||
20 | |||
21 | public static function factory(): UriFactoryInterface |
||
24 | } |
||
25 | } |
||
26 |