Completed
Push — master ( 832bbc...8568db )
by Vladimir
03:10
created

ConversationServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Conversation;
6
7
use League\Container\ServiceProvider\AbstractServiceProvider;
8
9
class ConversationServiceProvider extends AbstractServiceProvider
10
{
11
    protected $provides = [
12
        ConversationManager::class,
13
    ];
14
15
    /**
16
     * Use the register method to register items with the container via the
17
     * protected $this->container property or the `getContainer` method
18
     * from the ContainerAwareTrait.
19
     *
20
     * @return void
21
     */
22
    public function register()
23
    {
24 1
        $this->container->share(ConversationManager::class, function () {
25 1
            return new ConversationManager;
26 1
        });
27 1
    }
28
}
29