HttpResponderModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 0
cp 0
crap 2
rs 10
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