ExampleServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
1
<?php
2
namespace SamBurns\Pimple3ContainerInterop\Dev;
3
4
use Pimple\ServiceProviderInterface;
5
use Pimple\Container as PimpleContainer;
6
7
class ExampleServiceProvider implements ServiceProviderInterface
8
{
9
    /**
10
     * @param PimpleContainer $container
11
     */
12
    public function register(PimpleContainer $container)
13
    {
14
        $container['example-service'] =
15
            function () {
16
                return new \stdClass();
17
            };
18
    }
19
}
20