Completed
Push — 1.x ( abde83...7c6f23 )
by Akihito
13s
created

CreatedResourceModule   A

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 7
cts 7
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 BEAR.Package package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Package\Provide\Representation;
8
9
use BEAR\Package\Annotation\ReturnCreatedResource;
10
use Ray\Di\AbstractModule;
11
12
class CreatedResourceModule extends AbstractModule
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 22
    protected function configure()
18
    {
19 22
        $this->bind(CreatedResourceRenderer::class);
20 22
        $this->bindInterceptor(
21 22
            $this->matcher->any(),
22 22
            $this->matcher->annotatedWith(ReturnCreatedResource::class),
23 22
            [CreatedResourceInterceptor::class]
24
        );
25 22
    }
26
}
27