Completed
Push — master ( 5a6cbe...c8e6dd )
by Dmitry
05:03
created

BusinessLogicProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Provider;
4
5
use BusinessLogic;
6
use League\Container\ServiceProvider\AbstractServiceProvider;
7
8
class BusinessLogicProvider extends AbstractServiceProvider
9
{
10
    protected $provides = [
11
        BusinessLogic::class
12
    ];
13
14
    public function register()
15
    {
16
        $this->container->share(BusinessLogic::class, function () {
17
            return new BusinessLogic();
18
        });
19
    }
20
}
21