Completed
Push — 1.x ( 51f4d3...6a818c )
by Akihito
27s queued 18s
created

JsonSchemalModule::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 1
Bugs 0 Features 1
Metric Value
c 1
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 BEAR.Resource package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Resource\Module;
8
9
use BEAR\Resource\Annotation\JsonSchema;
10
use BEAR\Resource\Interceptor\JsonSchemaInterceptor;
11
use BEAR\Resource\ResourceObject;
12
use Ray\Di\AbstractModule;
13
14
class JsonSchemalModule extends AbstractModule
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    protected function configure()
20
    {
21 1
        $this->bindInterceptor(
22 1
            $this->matcher->subclassesOf(ResourceObject::class),
23 1
            $this->matcher->annotatedWith(JsonSchema::class),
24 1
            [JsonSchemaInterceptor::class]
25
        );
26 1
    }
27
}
28