ProcessList::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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