EmbedResourceModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 12
rs 10
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
     * {@inheritDoc}
19
     */
20
    #[Override]
21
    protected function configure(): void
22
    {
23
        $this->bindInterceptor(
24
            $this->matcher->any(),
25
            $this->matcher->annotatedWith(Embed::class),
26
            [EmbedInterceptor::class],
27
        );
28
    }
29
}
30