EmbedResourceModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\Module;
6
7
use BEAR\Resource\Annotation\Embed;
8
use BEAR\Resource\EmbedInterceptor;
9
use Override;
10
use Ray\Di\AbstractModule;
11
12
/**
13
 * Provides EmbedInterceptor interceptor bindings
14
 */
15
final class EmbedResourceModule extends AbstractModule
16
{
17
    /**
18 51
     * {@inheritDoc}
19
     */
20 51
    #[Override]
21 51
    protected function configure(): void
22 51
    {
23 51
        $this->bindInterceptor(
24 51
            $this->matcher->any(),
25
            $this->matcher->annotatedWith(Embed::class),
26 51
            [EmbedInterceptor::class],
27
        );
28
    }
29
}
30