TestServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: mindkicker
5
 * Date: 16.02.16
6
 * Time: 16:03
7
 */
8
9
namespace Lebran;
10
11
use Lebran\Container\ServiceProviderInterface;
12
13
class TestServiceProvider implements ServiceProviderInterface
14
{
15
16
    /**
17
     * Lebran\Container service provider interface.
18
     *
19
     * This method should only be used to configure services and parameters.
20
     *
21
     * @param Container $di The container instance.
22
     *
23
     * @return void
24
     */
25
    public function register(Container $di)
26
    {
27
        $di->set('test', new TestService());
28
    }
29
}