| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final readonly class HttpAdapter implements AdapterInterface |
||
|
|
|||
| 11 | { |
||
| 12 | public function __construct( |
||
| 13 | private InjectorInterface $injector, |
||
| 14 | ) { |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritDoc} |
||
| 19 | */ |
||
| 20 | #[Override] |
||
| 21 | public function get(AbstractUri $uri): ResourceObject |
||
| 22 | { |
||
| 23 | return $this->injector->getInstance(HttpResourceObject::class); |
||
| 24 | } |
||
| 26 |