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

RavenClientFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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