HttpResponderModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 5 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 Ray\Di\AbstractModule;
9
10
/**
11
 * Provides TransferInterface and derived bindings
12
 *
13
 * The following bindings are provided:
14
 *
15 2
 *  TransferInterface
16
 *  HeaderInterface
17 2
 *  ConditionalResponseInterface
18 2
 */
19
class HttpResponderModule extends AbstractModule
20
{
21
    protected function configure(): void
22
    {
23
        $this->bind(TransferInterface::class)->to(HttpResponder::class);
24
        $this->bind(HeaderInterface::class)->to(Header::class);
25
        $this->bind(ConditionalResponseInterface::class)->to(ConditionalResponse::class);
26
    }
27
}
28