HttpResponderModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 0
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Sunday\Provide\Transfer;
6
7
use BEAR\Sunday\Extension\Transfer\TransferInterface;
8
use Override;
9
use Ray\Di\AbstractModule;
10
11
/**
12
 * Provides TransferInterface and derived bindings
13
 *
14
 * The following bindings are provided:
15 2
 *
16
 *  TransferInterface
17 2
 *  HeaderInterface
18 2
 *  ConditionalResponseInterface
19
 */
20
final class HttpResponderModule extends AbstractModule
21
{
22
    #[Override]
23
    protected function configure(): void
24
    {
25
        $this->bind(TransferInterface::class)->to(HttpResponder::class);
26
        $this->bind(HeaderInterface::class)->to(Header::class);
27
        $this->bind(ConditionalResponseInterface::class)->to(ConditionalResponse::class);
28
    }
29
}
30