ProcessList   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 5
c 2
b 0
f 0
lcom 1
cbo 1
dl 0
loc 48
ccs 13
cts 13
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getData() 0 6 1
A getTemplate() 0 4 1
A getIcon() 0 4 1
A getTitle() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arnaud
5
 * Date: 21/11/15
6
 * Time: 15:14
7
 */
8
9
namespace Ndrx\Profiler\Renderer\Html;
10
11
class ProcessList extends Renderer
12
{
13
    /**
14
     * @var array
15
     */
16
    protected $profiles;
17
18
    /**
19
     * @param array $profiles
20
     */
21 4
    public function __construct(array $profiles)
22
    {
23 4
        $this->profiles = $profiles;
24
25 4
        parent::__construct([]);
26 4
    }
27
28 4
    public function getData()
29
    {
30
        return [
31 4
            'profiles' => $this->profiles
32 4
        ];
33
    }
34
35
    /**
36
     * @return mixed
37
     */
38 4
    public function getTemplate()
39
    {
40 4
        return 'process-list.html.twig';
41
    }
42
43
    /**
44
     * @return string
45
     */
46 4
    public function getIcon()
47
    {
48 4
        return 'options';
49
    }
50
51
    /**
52
     * @return string
53
     */
54 4
    public function getTitle()
55
    {
56 4
        return 'Profiles list';
57
    }
58
}
59