Completed
Push — master ( 8c4272...ef6d68 )
by Thomas Mauro
11s
created

RavenClientFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Facile\SentryModule\Service;
5
6
use Facile\SentryModule\Options\ConfigurationInterface;
7
use Interop\Container\ContainerInterface;
8
9
class RavenClientFactory
10
{
11 1
    public function __invoke(ContainerInterface $container)
12
    {
13
        /** @var ConfigurationInterface $configuration */
14 1
        $configuration = $container->get(ConfigurationInterface::class);
15 1
        $options = $configuration->getRavenOptions();
16
17 1
        return new \Raven_Client($configuration->getDsn(), $options);
18
    }
19
20
}
21