ExampleServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 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