Database   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 50%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 0
cbo 2
dl 0
loc 29
ccs 2
cts 4
cp 0.5
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 4 1
A getRenderer() 0 4 1
1
<?php
2
/**
3
 * User: LAHAXE Arnaud
4
 * Date: 05/11/2015
5
 * Time: 12:40
6
 * FileName : User.php
7
 * Project : profiler
8
 */
9
10
namespace Ndrx\Profiler\Collectors\Data;
11
12
use Ndrx\Profiler\Collectors\Contracts\StreamCollectorInterface;
13
use Ndrx\Profiler\Collectors\StreamCollector;
14
use Ndrx\Profiler\Renderer\BarRenderableInterface;
15
use Ndrx\Profiler\Renderer\RendererInterface;
16
17
abstract class Database extends StreamCollector implements StreamCollectorInterface, BarRenderableInterface
18
{
19
    /**
20
     * The path in the final json
21
     * @example
22
     *  path /aa/bb
23
     *  will be transformed to
24
     *  {
25
     *     aa : {
26
     *              bb: <VALUE OF RESOLVE>
27
     *       }
28
     *  }
29
     * @return mixed
30
     */
31 2
    public function getPath()
32
    {
33 2
        return 'database';
34
    }
35
36
    /**
37
     * @return RendererInterface
38
     *
39
     * @throws \RuntimeException
40
     */
41
    public function getRenderer()
42
    {
43
        return new \Ndrx\Profiler\Renderer\Html\Data\Database();
44
    }
45
}
46