TransactionalModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 9 1
1
<?php
2
/**
3
 * This file is part of the Ray.AuraSqlModule package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Ray\AuraSqlModule;
8
9
use Ray\AuraSqlModule\Annotation\Transactional;
10
use Ray\Di\AbstractModule;
11
12
class TransactionalModule extends AbstractModule
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 18
    protected function configure()
18
    {
19
        // @Transactional
20 18
        $this->bindInterceptor(
21 18
            $this->matcher->any(),
22 18
            $this->matcher->annotatedWith(Transactional::class),
23 18
            [TransactionalInterceptor::class]
24
        );
25 18
    }
26
}
27