BlackholeClientFactory::getClient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Werkspot\Bundle\StatsdBundle\Service;
4
5
use Domnikl\Statsd\Connection\Blackhole;
6
use Werkspot\Bundle\StatsdBundle\Client\StatsdClient;
7
use Werkspot\Bundle\StatsdBundle\Client\StatsdClientInterface;
8
9
class BlackholeClientFactory implements StatsdClientFactoryInterface
10
{
11
    /**
12
     * @param string $namespace
13
     *
14
     * @return StatsdClientInterface
15
     */
16
    public function getClient($namespace)
17
    {
18
        $connection = new Blackhole();
19
        return new StatsdClient($connection, $namespace);
20
    }
21
}
22