Completed
Push — 2.x ( 911306...bcb56c )
by Akihito
8s
created

AssistedModule::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * This file is part of the Ray.Di package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace Ray\Di;
8
9
class AssistedModule extends AbstractModule
10
{
11 36
    protected function configure()
12
    {
13 36
        $this->bindInterceptor(
14 36
            $this->matcher->any(),
15 36
            $this->matcher->annotatedWith('Ray\Di\Di\Assisted'),
16 36
            ['\Ray\Di\AssistedInterceptor']
17
        );
18 36
    }
19
}
20