ErrorModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
eloc 4
c 3
b 0
f 1
dl 0
loc 7
ccs 3
cts 3
cp 1
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\Error;
6
7
use BEAR\Sunday\Extension\Error\ErrorInterface;
8
use BEAR\Sunday\Extension\Error\ThrowableHandlerInterface;
9
use Override;
10
use Ray\Di\AbstractModule;
11
12
final class ErrorModule extends AbstractModule
13
{
14
    #[Override]
15 2
    protected function configure(): void
16
    {
17 2
        $this->bind(ErrorInterface::class)->to(VndError::class);
18 2
        $this->bind(ThrowableHandlerInterface::class)->to(ThrowableHandler::class);
19
    }
20
}
21